[Bf-blender-cvs] [26eb8d6aa0c] master: UI: Use decorators in volume modifiers

Hans Goudey noreply at git.blender.org
Thu Nov 26 18:56:18 CET 2020


Commit: 26eb8d6aa0c8fcf59d427390f57765c61fde2c92
Author: Hans Goudey
Date:   Thu Nov 26 12:56:12 2020 -0500
Branches: master
https://developer.blender.org/rB26eb8d6aa0c8fcf59d427390f57765c61fde2c92

UI: Use decorators in volume modifiers

This is consistent with the UI for other modifier types.

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

M	source/blender/modifiers/intern/MOD_mesh_to_volume.cc
M	source/blender/modifiers/intern/MOD_volume_displace.cc
M	source/blender/modifiers/intern/MOD_volume_to_mesh.cc

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

diff --git a/source/blender/modifiers/intern/MOD_mesh_to_volume.cc b/source/blender/modifiers/intern/MOD_mesh_to_volume.cc
index 61d556a64af..e137a59e10f 100644
--- a/source/blender/modifiers/intern/MOD_mesh_to_volume.cc
+++ b/source/blender/modifiers/intern/MOD_mesh_to_volume.cc
@@ -143,7 +143,6 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel)
   MeshToVolumeModifierData *mvmd = static_cast<MeshToVolumeModifierData *>(ptr->data);
 
   uiLayoutSetPropSep(layout, true);
-  uiLayoutSetPropDecorate(layout, false);
 
   uiItemR(layout, ptr, "object", 0, nullptr, ICON_NONE);
   uiItemR(layout, ptr, "density", 0, nullptr, ICON_NONE);
diff --git a/source/blender/modifiers/intern/MOD_volume_displace.cc b/source/blender/modifiers/intern/MOD_volume_displace.cc
index f4e1936713c..90e570f55fb 100644
--- a/source/blender/modifiers/intern/MOD_volume_displace.cc
+++ b/source/blender/modifiers/intern/MOD_volume_displace.cc
@@ -112,7 +112,6 @@ static void panel_draw(const bContext *C, Panel *panel)
   VolumeDisplaceModifierData *vdmd = static_cast<VolumeDisplaceModifierData *>(ptr->data);
 
   uiLayoutSetPropSep(layout, true);
-  uiLayoutSetPropDecorate(layout, false);
 
   uiTemplateID(layout, C, ptr, "texture", "texture.new", nullptr, nullptr, 0, ICON_NONE, nullptr);
   uiItemR(layout, ptr, "texture_map_mode", 0, "Texture Mapping", ICON_NONE);
diff --git a/source/blender/modifiers/intern/MOD_volume_to_mesh.cc b/source/blender/modifiers/intern/MOD_volume_to_mesh.cc
index e008dc3f140..ec53914f115 100644
--- a/source/blender/modifiers/intern/MOD_volume_to_mesh.cc
+++ b/source/blender/modifiers/intern/MOD_volume_to_mesh.cc
@@ -95,7 +95,6 @@ static void panel_draw(const bContext *UNUSED(C), Panel *panel)
   VolumeToMeshModifierData *vmmd = static_cast<VolumeToMeshModifierData *>(ptr->data);
 
   uiLayoutSetPropSep(layout, true);
-  uiLayoutSetPropDecorate(layout, false);
 
   {
     uiLayout *col = uiLayoutColumn(layout, false);



More information about the Bf-blender-cvs mailing list