Campbell Barton
432bfbf7a3
Cleanup: pep8
2021-07-06 12:05:27 +10:00
Campbell Barton
c6ddb68b7a
Cleanup: remove unused layers property from template
...
Also remove unused imports.
2021-02-21 20:55:31 +11:00
Campbell Barton
af37c3e8f1
Cleanup: remove duplicate settings from operator_mesh_add template
...
Also move align items into the enum call as there is no need to have
this accessible from the class.
2021-02-21 19:48:11 +11:00
Campbell Barton
4fcdcbe38d
Cleanup: pep8 for templates
2019-10-15 15:20:15 +11:00
Dalai Felinto
da25748be7
Python Templates: Fix Operator Mesh Add
...
This was broken since: 06fe2a5e0c5d6202864701cf7fd800e4906057c9
2019-06-28 09:57:16 -03: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
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
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
Campbell Barton
532c8ac583
Cleanup: pep8 function indentation
2018-06-26 19:58:56 +02:00
Campbell Barton
ad7fb1c028
Cleanup: Python imports
...
Split over lines to diff more easily.
2017-11-29 18:05:41 +11:00
Campbell Barton
ee324aacdd
Hide layers from UI in template
2016-04-01 10:23:39 +11:00
Bassam Kurdali
0f63ce61c5
Fix add mesh template
2016-03-22 14:26:48 +11:00
Julian Eisel
d6a6950547
Correction to previous commit
...
Calling ensure_lookup_table for each face is stupid! :/
(Noted by Sergey - thx)
2015-03-05 20:36:58 +01:00
Julian Eisel
61aede4305
Fix T43900: "Operator Mesh Add" template fails
...
Another script that was missing the lookup_table call.
2015-03-05 20:26:41 +01:00
Campbell Barton
33955940e4
add templates menu for OSL, use preprocessor directive color for decorators in python.
2012-12-30 01:39:55 +00:00