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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-01 17:07:25 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-01 18:14:06 +0300
commit0706b410bd05cf9448e00b55e59e48a56682f84d (patch)
tree9f871bcde38c6b805bd40aff1cbe7e721ac647a0 /release
parenteef18d39cbf0e50ba18d28f52f57689ad0701c16 (diff)
UI: use same "Viewport Display" name for scene/object/material panels.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_material.py2
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py14
2 files changed, 9 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py
index 6876cf65cb6..369772f7258 100644
--- a/release/scripts/startup/bl_ui/properties_material.py
+++ b/release/scripts/startup/bl_ui/properties_material.py
@@ -215,7 +215,7 @@ class EEVEE_MATERIAL_PT_options(MaterialButtonsPanel, Panel):
class MATERIAL_PT_viewport(MaterialButtonsPanel, Panel):
- bl_label = "Viewport"
+ bl_label = "Viewport Display"
bl_context = "material"
bl_options = {'DEFAULT_CLOSED'}
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py
index 54b647f5b66..6486fbf0d63 100644
--- a/release/scripts/startup/bl_ui/properties_object.py
+++ b/release/scripts/startup/bl_ui/properties_object.py
@@ -199,7 +199,7 @@ class OBJECT_PT_collections(ObjectButtonsPanel, Panel):
class OBJECT_PT_display(ObjectButtonsPanel, Panel):
- bl_label = "Display"
+ bl_label = "Viewport Display"
bl_options = {'DEFAULT_CLOSED'}
def draw(self, context):
@@ -252,11 +252,6 @@ class OBJECT_PT_display(ObjectButtonsPanel, Panel):
# Only useful with object having faces/materials...
col.prop(obj, "color")
- col = layout.column(align=True)
- col.active = bool(is_dupli or obj.particle_systems)
- col.prop(obj, "show_duplicator_for_viewport")
- col.prop(obj, "show_duplicator_for_render")
-
class OBJECT_PT_duplication(ObjectButtonsPanel, Panel):
bl_label = "Duplication"
@@ -296,6 +291,13 @@ class OBJECT_PT_duplication(ObjectButtonsPanel, Panel):
elif ob.dupli_type == 'COLLECTION':
layout.prop(ob, "dupli_group", text="Collection")
+ if ob.dupli_type != 'NONE' or len(ob.particle_systems):
+ layout.separator()
+
+ col = layout.column(align=True)
+ col.prop(ob, "show_duplicator_for_viewport")
+ col.prop(ob, "show_duplicator_for_render")
+
from .properties_animviz import (
MotionPathButtonsPanel,