Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-05-12 04:46:51 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-05-13 03:52:46 +0300
commitce35cfd208ac8020f592a2c379e86b5b0f49a35f (patch)
treed9a8dc3957fd35dfc89fc09078867dd7839fe833 /release
parentbf0a55411491329aa2ee893c111e66feeab8793b (diff)
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
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_modifier.py5
1 files changed, 4 insertions, 1 deletions
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()