Aaron Carlisle
fdcfc263e9
Use latest/version number for manual links
...
We want users to go to the current version for their current version
when possible if not point to latest.
/dev should really only be for development related work. End users
should not be browsing /dev unless they are reading about upcoming
features ahead of time.
2019-07-04 18:24:36 -04:00
Dalai Felinto
f5e0ae655e
Python Templates: Small fix for gizmo custom geometry
...
The mouse offset was inverted (the widget was going the opposite direction as the
mouse movement).
2019-06-28 09:57:16 -03:00
Dalai Felinto
30d65c326a
Python Templates: Update Custom Nodes tooltip
...
Since we exposed the editors sub-types to the type editor selector, this template
no longer shows in the head, but in the type editor selector.
2019-06-28 09:57:16 -03:00
Dalai Felinto
0519bb584b
Python Templates: Silence _MT_ warning in pie menu template
2019-06-28 09:57:16 -03:00
Dalai Felinto
da25748be7
Python Templates: Fix Operator Mesh Add
...
This was broken since: 06fe2a5e0c
2019-06-28 09:57:16 -03:00
Jacques Lucke
54021da58b
Python Templates: fix operator_mesh_uv template
2019-06-06 14:36:08 +02:00
Bastien Montagne
33e8db94b1
Fix (unreported) missing updates in scripts/docs after scene.update() removal.
...
This should really have been done together with API changes, simple
usage of grep does the trick to catch most places needing updates.
2019-06-04 14:39:51 +02:00
Campbell Barton
8accb5a46f
Cleanup: minor corrections
2019-05-22 08:53:04 +10:00
Philipp Oeser
4f6d6f982f
python templates: update operator_modal_view3d_raycast to 2.8
...
Reviewers: JacquesLucke, sergey
Differential Revision: https://developer.blender.org/D4914
2019-05-21 16:39:48 +02:00
Philipp Oeser
903e5d3972
python templates: update operator_modal_draw to 2.8
...
part of T56351
Reviewers: JacquesLucke
Differential Revision: https://developer.blender.org/D4912
2019-05-21 15:36:05 +02:00
Hans Goudey
06fe2a5e0c
Objects: new 3D cursor alignment option when adding objects
...
The choices are now World, View and 3D Cursor.
This breaks Python API compatibility, add-ons that add objects with this
parameter will need to be updated.
Differential Revision: https://developer.blender.org/D4706
2019-05-15 18:10:58 +02:00
Philipp Oeser
f3fc8271b8
Fix T63504: Python Template 'ui_previews_dynamic_enum' error
...
thx @nacioss for the fix
2019-04-12 14:10:10 +02:00
Campbell Barton
41b289be30
Cleanup: unused imports
2019-03-15 19:45:21 +11:00
Campbell Barton
f29b80ff79
Tool System: add tool registration API
...
This mimics RNA style class registration,
keeping the same internal data types.
Currently there is a template which shows an example of adding a tool
group with a keymap.
Icon generation still needs to be exposed for general use.
2019-03-15 17:05:18 +11:00
Campbell Barton
69665bc7f0
RNA: move cursor into own struct
...
Without this it's impractical to subscribe to any change to the cursor.
Fixes T61969 by having gizmos update on any change to the cursor.
2019-03-01 12:41:40 +11:00
Campbell Barton
c51516c3fb
Update for rename: constraint_orientation -> orient_type
2019-02-28 12:30:56 +11:00
Campbell Barton
7894d6c6f1
Cleanup: line length
2019-01-30 09:06:44 +11:00
Sebastian Parborg
8c0a77b894
Fix T59944: Template operator_mesh_uv.py fails
2019-01-07 10:21:23 +11:00
Campbell Barton
63fcbfc3a7
RNA: naming, user-preferences -> preferences
2018-12-21 12:55:02 +11:00
Philipp Oeser
f2796da2e5
PyTemplates operator_modal_timer: update to 2.8
...
use keyword argument
Fixes T59232
2018-12-12 09:36:46 +01:00
Campbell Barton
c631782542
Fix T58474: Gizmo Operator template fails on rerun
2018-12-04 10:17:42 +11:00
Sergey Sharybin
7c7f3776dd
Use collection and instance terminology in Python API
...
This follows naming convention agreed on in T56648.
2018-11-28 18:22:51 +01:00
Campbell Barton
1b870bce85
Tool System: remove custom tool registration
...
API is not ready for beta (likely to change).
2018-11-28 10:40:02 +11:00
Philipp Oeser
20963a6a06
PyTemplates operator_modal_view3d_raycast: update to blender2.8 (*/@)
2018-11-16 12:10:35 +01:00
Brecht Van Lommel
088be7eb2f
Keymaps: replace select / action mouse system
...
For Blender builtin configurations the option to choose the select mouse remains
and is now also in the splash screen. It works by changing the keymap dynamically
in the script, rather than using special events.
The system of automatic switching of events was not flexible enough to deal with
side effects that require further keymap changes, so it is now under more manual
control in the script.
This breaks compatibility for some scripts and exported key configurations.
These can be fixed by replacing SELECTMOUSE, ACTIONMOUSE, EVT_TWEAK_S and
EVT_TWEAK_A with appropriate LEFTMOUSE, RIGHTMOUSE, EVT_TWEAK_L and
EVT_TWEAK_R events.
Other than that, there should be no functional changes.
2018-11-16 08:31:00 +11:00
Bastien Montagne
a4fccde67a
Fix some templates for 2.8.
2018-11-14 18:21:06 +01:00
Campbell Barton
f12d2adc87
RNA: Object.select_set use boolean, only select
...
- Was setting active state, making it necessary to backup/restore
active object in cases where this isn't needed.
Existing scripts are explicitly setting the active object when needed.
- Use a boolean select arg (toggle selection wasn't used anywhere).
- Add an optional view layer argument since scripts should be able to
operate outside the user context.
2018-11-08 08:54:55 +11:00
Campbell Barton
f907eb4268
PyAPI: Use 'None' arg to clear header text
2018-10-30 16:20:38 +11:00
Campbell Barton
108475dc01
PyAPI: Support for custom tool registration
...
Added a module bpy.utils.toolsystem which only exposes ToolDef,
to avoid scripts referencing bl_ui internals.
2018-10-18 17:13:22 +11:00
Campbell Barton
b8ac2379eb
Cleanup: remove redundant assignment
2018-09-08 07:29:15 +10:00
Campbell Barton
570b328fac
Cleanup: Update shortcut in comment
2018-09-08 06:54:03 +10:00
Campbell Barton
9c441dcd73
Gizmo: update template to use matrix multiply
2018-09-08 06:51:02 +10:00
Campbell Barton
f23319d095
RNA: Area.header_text_set text is now required
2018-09-08 06:23:25 +10:00
Brecht Van Lommel
e0a4dc6a79
UI / Python: rename X-Ray to In Front, Draw to Display.
...
See T56648.
2018-09-06 13:26:46 +02:00
Brecht Van Lommel
f1c8c25a3e
UI: rename Translate/Grab to Move in UI, shortcuts stay the same.
2018-09-06 12:22:09 +02:00
Bastien Montagne
a43ebc63fa
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenkernel/intern/collision.c
2018-09-03 17:44:36 +02:00
Brecht Van Lommel
4da2acae3a
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3668
2018-09-03 16:55:01 +02:00
Brecht Van Lommel
0d085790d1
Python / Cleanup: rename INFO_MT to TOPBAR_MT/VIEW3D_MT to reflect actual location.
2018-08-29 16:25:50 +02:00
Campbell Barton
e9fb2feb2e
UI: text keyword argument to label
...
Prepare for keyword only args
2018-08-28 12:34:51 +10:00
Brecht Van Lommel
31c49493d1
Fix incorrect active object setting in scripts.
2018-07-24 11:27:05 +02:00
Campbell Barton
b29b73a67e
Gizmo: update Python templates
2018-07-15 19:51:11 +02:00
Campbell Barton
b457cae397
Cleanup: use variable names based on term gizmo
2018-07-15 14:35:33 +02:00
Campbell Barton
89299f6620
WM: rename manipulator to gizmo in Python API
2018-07-14 23:55:54 +02:00
Campbell Barton
cd16004132
WM: rename files, manipulator -> gizmo
...
Edit doxy files and header guards only.
2018-07-14 23:16:34 +02:00
Campbell Barton
09aa799e53
PyAPI: Use annotations for RNA definitions
...
- Logical use of fields since they define type information.
- Avoids using ordered-dict metaclass.
Properties using regular assignments will print a warning and load,
however the order is undefined.
2018-07-11 22:18:09 +02:00
Brecht Van Lommel
74fd17e9d7
UI/Python: rename Lamps to Lights, to follow more standard terminology.
...
Internally it's still mostly named lamps, though some modules like Cycles
were already calling them lights.
2018-07-06 20:06:09 +02:00
Brecht Van Lommel
89e0d9848a
UI: keep some operator text in headers.
...
Key shortcuts and explanation about how to use the tool should go to the
status bar, but other info can in the header so it's near where the user
is working. This distinction has not been made yet for all operators.
2018-06-28 13:04:28 +02:00
Campbell Barton
a61480c271
Merge branch 'master' into blender2.8
2018-06-26 22:56:39 +02:00
Campbell Barton
532c8ac583
Cleanup: pep8 function indentation
2018-06-26 19:58:56 +02:00
Brecht Van Lommel
df02675e21
UI: move modal operator text from headers to status bar.
...
Python API is context.workspace.status_text_set()
2018-06-26 19:45:55 +02:00