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-05-28 19:05:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-28 19:16:01 +0300
commit98d4d4ce583db038a7a60afeb9a588c0710561fd (patch)
tree4f073883c5fec051a7a96b5e30cf480a680ec7ba /release
parent42d6b8efc0cb0c5385f6b6fc6e8ba96d4dc9a93d (diff)
Tool System: workaround psys cursor conflict
This needs to be solved properly, for now add cursor-click tool which can co-exist w/ particle paint.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 814c26ce796..42fac9e03a4 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -96,6 +96,16 @@ class _defs_view3d_generic:
)
@ToolDef.from_fn
+ def cursor_click():
+ return dict(
+ text="Cursor Click",
+ icon="ops.generic.cursor",
+ keymap=(
+ ("view3d.cursor3d", dict(), dict(type='ACTIONMOUSE', value='CLICK')),
+ ),
+ )
+
+ @ToolDef.from_fn
def ruler():
return dict(
text="Ruler/Protractor",
@@ -1022,6 +1032,11 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
_defs_edit_curve.draw,
_defs_edit_curve.extrude_cursor,
],
+ 'PARTICLE': [
+ # TODO(campbell): use cursor click tool to allow paint tools to run,
+ # we need to integrate particle system tools properly.
+ _defs_view3d_generic.cursor_click,
+ ],
'SCULPT': [
_defs_sculpt.generate_from_brushes,
],