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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-17 09:26:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-17 09:32:42 +0300
commit8ec7429a70cca85dd3bc7f29f1ac5030aec7054f (patch)
tree34c1e703cdb3998f8ae5d3d0f2340afa828327a5 /release/scripts/startup/bl_ui/properties_paint_common.py
parent7fac1bfc203198583eb2e65caedec6b32c24484f (diff)
parent42b9df5907d041a5a68585308b1e11b2eac2c947 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_paint_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py
index 1bd95019a45..76eee827553 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -27,21 +27,21 @@ class UnifiedPaintPanel:
@staticmethod
def paint_settings(context):
- toolsettings = context.tool_settings
+ tool_settings = context.tool_settings
if context.sculpt_object:
- return toolsettings.sculpt
+ return tool_settings.sculpt
elif context.vertex_paint_object:
- return toolsettings.vertex_paint
+ return tool_settings.vertex_paint
elif context.weight_paint_object:
- return toolsettings.weight_paint
+ return tool_settings.weight_paint
elif context.image_paint_object:
- if (toolsettings.image_paint and toolsettings.image_paint.detect_data()):
- return toolsettings.image_paint
+ if (tool_settings.image_paint and tool_settings.image_paint.detect_data()):
+ return tool_settings.image_paint
return None
elif context.particle_edit_object:
- return toolsettings.particle_edit
+ return tool_settings.particle_edit
return None