[Bf-blender-cvs] [ce35cfd208a] blender-v2.83-release: Fix T76306: Disable use creases when there is displacement data

Pablo Dobarro noreply at git.blender.org
Wed May 13 02:53:28 CEST 2020


Commit: ce35cfd208ac8020f592a2c379e86b5b0f49a35f
Author: Pablo Dobarro
Date:   Tue May 12 03:46:51 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBce35cfd208ac8020f592a2c379e86b5b0f49a35f

Fix T76306: Disable use creases when there is displacement data

Use creases changes the limit surface, so the displacemente data is
won't be correct if this option is modified without updating the
displacement.

Reviewed By: sergey

Maniphest Tasks: T76306

Differential Revision: https://developer.blender.org/D7700

===================================================================

M	release/scripts/startup/bl_ui/properties_data_modifier.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 8f1337b156d..0a5d5ef3d8a 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -705,7 +705,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col.operator("object.multires_base_apply", text="Apply Base")
         col.prop(md, "uv_smooth", text="")
         col.prop(md, "show_only_control_edges")
-        col.prop(md, "use_creases")
+
+        row = col.row()
+        row.enabled = not have_displacement
+        row.prop(md, "use_creases")
 
         layout.separator()



More information about the Bf-blender-cvs mailing list