Manipulator: Python API
authorCampbell Barton <ideasman42@gmail.com>
Mon, 26 Jun 2017 05:57:14 +0000 (15:57 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 26 Jun 2017 06:38:04 +0000 (16:38 +1000)
commit28b2f1c30504ce0e437b21f7964282fcd6894421
tree8653eeeb0edb90cf41a93bc2b196ac55739f2a32
parentc9e33b36de25d272a9896ad0a85dcc69ee0692ba
Manipulator: Python API

Initial support for Python/Manipulator integration
from 'custom-manipulators' branch.

Supports:

- Registering custom manipulators & manipulator-groups.
- Modifying RNA properties, custom values via get/set callbacks,
  or invoking an operator.
- Drawing shape presets for Python defined manipulators (arrow, circle, face-maps)

Limitations:

- Only float properties supported.
- Drawing only supported via shape presets.
  (we'll likely want a way to define custom geometry or draw directly).
- When to refresh, recalculate manipulators will likely need
  integration with notifier system.

Development will be continued in the 2.8 branch
22 files changed:
build_files/cmake/macros.cmake
doc/python_api/examples/bpy.types.ManipulatorGroup.py [new file with mode: 0644]
doc/python_api/sphinx_doc_gen.py
release/scripts/modules/bpy_types.py
release/scripts/templates_py/manipulator_operator.py [new file with mode: 0644]
release/scripts/templates_py/manipulator_operator_target.py [new file with mode: 0644]
release/scripts/templates_py/manipulator_simple.py [new file with mode: 0644]
source/blender/makesrna/intern/CMakeLists.txt
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_wm_api.c
source/blender/makesrna/intern/rna_wm_manipulator.c
source/blender/makesrna/intern/rna_wm_manipulator_api.c [new file with mode: 0644]
source/blender/python/intern/CMakeLists.txt
source/blender/python/intern/bpy.c
source/blender/python/intern/bpy_intern_string.c
source/blender/python/intern/bpy_intern_string.h
source/blender/python/intern/bpy_manipulator_wrap.c [new file with mode: 0644]
source/blender/python/intern/bpy_manipulator_wrap.h [new file with mode: 0644]
source/blender/python/intern/bpy_rna.c
source/blender/python/intern/bpy_rna_manipulator.c [new file with mode: 0644]
source/blender/python/intern/bpy_rna_manipulator.h [new file with mode: 0644]
source/blenderplayer/bad_level_call_stubs/stubs.c