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:
authorDalai Felinto <dfelinto@gmail.com>2016-11-02 12:48:06 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-11-02 12:59:52 +0300
commita41bbd3053c8f07c24ccb07eaeff09cc078cc4d4 (patch)
treeaed76b27fa7b6fde5023b6d3ecd5f5079ed24aad /release
parentfb6f42dc4f0dc24a992a631b7aac3290449e815a (diff)
parent13ee9b8ebe08ee95478f51537f10e9a1b1e4d863 (diff)
Merge remote-tracking branch 'origin/master' into blender2.8
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/bpy_extras/object_utils.py4
-rw-r--r--release/scripts/startup/bl_ui/properties_data_mesh.py1
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_smoke.py8
3 files changed, 12 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_extras/object_utils.py b/release/scripts/modules/bpy_extras/object_utils.py
index 87bb84b5844..88cd7398fe0 100644
--- a/release/scripts/modules/bpy_extras/object_utils.py
+++ b/release/scripts/modules/bpy_extras/object_utils.py
@@ -137,12 +137,14 @@ def object_data_add(context, obdata, operator=None, use_active_layer=True, name=
if context.space_data and context.space_data.type == 'VIEW_3D':
v3d = context.space_data
+ if v3d and v3d.local_view:
+ base.layers_from_view(context.space_data)
+
if operator is not None and any(operator.layers):
base.layers = operator.layers
else:
if use_active_layer:
if v3d and v3d.local_view:
- base.layers_from_view(context.space_data)
base.layers[scene.active_layer] = True
else:
if v3d and not v3d.lock_camera_and_layers:
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index 5416735494b..59907692fe0 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -38,6 +38,7 @@ class MESH_MT_vertex_group_specials(Menu):
layout.operator("object.vertex_group_mirror", text="Mirror Vertex Group (Topology)", icon='ARROW_LEFTRIGHT').use_topology = True
layout.operator("object.vertex_group_remove_from", icon='X', text="Remove from All Groups").use_all_groups = True
layout.operator("object.vertex_group_remove_from", icon='X', text="Clear Active Group").use_all_verts = True
+ layout.operator("object.vertex_group_remove", icon='X', text="Delete All Unlocked Groups").all_unlocked = True
layout.operator("object.vertex_group_remove", icon='X', text="Delete All Groups").all = True
layout.separator()
layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock All").action = 'LOCK'
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py
index 9d9dd529322..8518e6ffe81 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -378,6 +378,14 @@ class PHYSICS_PT_smoke_display_settings(PhysicButtonsPanel, Panel):
col.prop(domain, "vector_draw_type")
col.prop(domain, "vector_scale")
+ layout.separator()
+ layout.label(text="Color Mapping:")
+ layout.prop(domain, "use_color_ramp")
+ col = layout.column();
+ col.enabled = domain.use_color_ramp
+ col.prop(domain, "coba_field")
+ col.template_color_ramp(domain, "color_ramp", expand=True)
+
if __name__ == "__main__": # only for live edit.
bpy.utils.register_module(__name__)