diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-13 13:40:12 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-03-13 16:13:39 +0300 |
commit | e4de25e78b59e9a5fcd08a25dcdb1e93f72473d5 (patch) | |
tree | 023cf17ead8c1d8c8a4bfb7dd95ec87a83abdd5e | |
parent | e9aee3ac28e0f7c15b35b2fdf410c1e2c19057eb (diff) |
Disable/remove 'use_mesh_modifiers_render' in FBX/OBJ for now.
We need a way for add-ons to generate a temp render depsgraph and
evaluate it, for this to work again, with new Blender 2.8 design.
-rw-r--r-- | io_scene_fbx/__init__.py | 4 | ||||
-rw-r--r-- | io_scene_obj/__init__.py | 11 |
2 files changed, 8 insertions, 7 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index ce7f748f..2aab8d0a 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -321,7 +321,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper): ) use_mesh_modifiers_render: BoolProperty( name="Use Modifiers Render Setting", - description="Use render settings when applying modifiers to mesh objects", + description="Use render settings when applying modifiers to mesh objects (DISABLED in Blender 2.8)", default=True, ) mesh_smooth_type: EnumProperty( @@ -504,7 +504,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper): elif self.ui_tab == 'GEOMETRY': layout.prop(self, "use_mesh_modifiers") sub = layout.row() - sub.enabled = self.use_mesh_modifiers + sub.enabled = self.use_mesh_modifiers and False # disabled in 2.8... sub.prop(self, "use_mesh_modifiers_render") layout.prop(self, "mesh_smooth_type") layout.prop(self, "use_mesh_edges") diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py index 6ced0e1a..9e7854a4 100644 --- a/io_scene_obj/__init__.py +++ b/io_scene_obj/__init__.py @@ -203,11 +203,12 @@ class ExportOBJ(bpy.types.Operator, ExportHelper): description="Apply modifiers", default=True, ) - use_mesh_modifiers_render: BoolProperty( - name="Use Modifiers Render Settings", - description="Use render settings when applying modifiers to mesh objects", - default=False, - ) + # Non working in Blender 2.8 currently. + # ~ use_mesh_modifiers_render: BoolProperty( + # ~ name="Use Modifiers Render Settings", + # ~ description="Use render settings when applying modifiers to mesh objects", + # ~ default=False, + # ~ ) # extra data group use_edges: BoolProperty( |