aboutsummaryrefslogtreecommitdiff
path: root/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_objectinstanceitem.cpp
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2015-08-28 18:19:22 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2015-08-28 18:19:22 +0000
commit212c463beaf30694d921f0d37d0c3125aa796588 (patch)
treeed96343a2a09b4fca32ef12bec05fb03de360230 /graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_objectinstanceitem.cpp
parent2c2b6992f13a3d7b01e37c06ac52d9ab453984b1 (diff)
downloadports-212c463beaf30694d921f0d37d0c3125aa796588.tar.gz
ports-212c463beaf30694d921f0d37d0c3125aa796588.zip
Add a port of appleseed: modern, open source, physically-based rendering
engine designed to produce photorealistic images, animations, and visual effects. To ease initial maintenance, disable Doxygen API documentation generation, unit tests, installation of headers and Python bindings for now; there'll be OPTIONS for those things once the dust settles.
Notes
Notes: svn path=/head/; revision=395520
Diffstat (limited to 'graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_objectinstanceitem.cpp')
-rw-r--r--graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_objectinstanceitem.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_objectinstanceitem.cpp b/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_objectinstanceitem.cpp
new file mode 100644
index 000000000000..9cc877b8d0ca
--- /dev/null
+++ b/graphics/appleseed/files/patch-src_appleseed.studio_mainwindow_project_objectinstanceitem.cpp
@@ -0,0 +1,48 @@
+--- src/appleseed.studio/mainwindow/project/objectinstanceitem.cpp.orig 2015-06-13 09:38:53 UTC
++++ src/appleseed.studio/mainwindow/project/objectinstanceitem.cpp
+@@ -124,8 +124,10 @@ QMenu* ObjectInstanceItem::get_single_it
+ {
+ QMenu* menu = ItemBase::get_single_item_context_menu();
+
++#ifdef APPLESEED_WITH_DISNEY_MATERIAL
+ menu->addSeparator();
+ menu->addAction("Assign New Disney Material", this, SLOT(slot_assign_new_disney_material()));
++#endif // APPLESEED_WITH_DISNEY_MATERIAL
+
+ menu->addSeparator();
+ menu->addAction("Assign Materials...", this, SLOT(slot_open_material_assignment_editor()));
+@@ -168,15 +170,18 @@ QMenu* ObjectInstanceItem::get_multiple_
+
+ QMenu* menu = ItemBase::get_multiple_items_context_menu(items);
+
++#ifdef APPLESEED_WITH_DISNEY_MATERIAL
+ menu->addSeparator();
+ menu->addAction("Assign New Disney Material", this, SLOT(slot_assign_new_disney_material()))
+ ->setData(QVariant::fromValue(items));
++#endif // APPLESEED_WITH_DISNEY_MATERIAL
+
+ add_material_assignment_menu_actions(menu, items);
+
+ return menu;
+ }
+
++#ifdef APPLESEED_WITH_DISNEY_MATERIAL
+ // Friend of ObjectInstanceItem class, thus cannot be placed in anonymous namespace.
+ class AssignNewDisneyMaterialAction
+ : public RenderingManager::IScheduledAction
+@@ -255,12 +260,15 @@ class AssignNewDisneyMaterialAction
+ EntityEditorContext& m_editor_context;
+ const QList<ItemBase*> m_items;
+ };
++#endif // APPLESEED_WITH_DISNEY_MATERIAL
+
+ void ObjectInstanceItem::slot_assign_new_disney_material()
+ {
++#ifdef APPLESEED_WITH_DISNEY_MATERIAL
+ m_editor_context.m_rendering_manager.schedule_or_execute(
+ auto_ptr<RenderingManager::IScheduledAction>(
+ new AssignNewDisneyMaterialAction(m_editor_context, get_action_items())));
++#endif // APPLESEED_WITH_DISNEY_MATERIAL
+ }
+
+ void ObjectInstanceItem::slot_open_material_assignment_editor()