Campbell Barton
345c6298e9
Object Mode: move to workspace struct
...
- Read-only access can often use EvaluationContext.object_mode
- Write access to go to WorkSpace.object_mode.
- Some TODO's remain (marked as "TODO/OBMODE")
- Add-ons will need updating
(context.active_object.mode -> context.workspace.object_mode)
- There will be small/medium issues that still need resolving
this does work on a basic level though.
See D3037
2018-02-08 21:14:26 +11:00
Campbell Barton
e4c9cf7088
Merge branch 'master' into blender2.8
2018-02-01 14:02:33 +11:00
Campbell Barton
10fec1f153
Cleanup: Python code-style (addons, wm)
2018-02-01 13:58:44 +11:00
Campbell Barton
58be6d282d
Merge branch 'master' into blender2.8
2018-01-14 17:29:38 +11:00
Campbell Barton
8d3efb2b90
Fix T53772: Presets don't support colons
2018-01-14 14:31:39 +11:00
Campbell Barton
f59303bead
Fix color for manipulator drawing
...
Was drawing black after the first draw call.
For now set the shader before each draw call,
noted as TODO to investigate a nicer way to handle.
2018-01-10 20:50:14 +11:00
Campbell Barton
3143b2f942
Merge branch 'master' into blender2.8
2017-12-20 15:06:22 +11:00
Ray Molenkamp
433c74d9f7
bpy_extras: add missing colorband keymap to keyconfig_utils.py
...
fixes failing ctest script_load_keymap
2017-12-19 08:04:17 -07:00
Campbell Barton
82c779462d
Merge branch 'master' into blender2.8
2017-12-08 12:59:51 +11:00
Campbell Barton
4a734325f7
bl_app_override: support empty UI layout items
...
Returning None from ui_ignore functions creates empty labels,
allows removing items without breaking layout in some cases.
2017-12-08 12:57:25 +11:00
Campbell Barton
7a8ac1b09b
WM: message bus replacement for property notifiers
...
Use dynamically generated message publish/subscribe
so buttons and manipulators update properly.
This resolves common glitches where manipulators weren't updating
as well as the UI when add-ons exposed properties which
hard coded listeners weren't checking for.
Python can also publish/scribe changes via `bpy.msgbus`.
See D2917
2017-12-04 20:42:34 +11:00
Campbell Barton
3cb19a3d89
Merge branch 'master' into blender2.8
2017-11-29 18:06:24 +11:00
Campbell Barton
ad7fb1c028
Cleanup: Python imports
...
Split over lines to diff more easily.
2017-11-29 18:05:41 +11:00
Dalai Felinto
3abe8b3292
Rename any instance of scene layer or render layer in code with view layer
...
The RenderResult struct still has a listbase of RenderLayer, but that's ok
since this is strictly for rendering.
* Subversion bump (to 2.80.2)
* DNA low level doversion (renames) - only for .blend created since 2.80 started
Note: We can't use DNA_struct_elem_find or get file version in init_structDNA,
so we are manually iterating over the array of the SDNA elements instead.
Note 2: This doversion change with renames can be reverted in a few months. But
so far it's required for 2.8 files created between October 2016 and now.
Reviewers: campbellbarton, sergey
Differential Revision: https://developer.blender.org/D2927
2017-11-23 07:48:23 -02:00
Campbell Barton
a8777f9058
Merge branch 'master' into blender2.8
2017-11-20 20:45:03 +11:00
Joshua Leung
fc77676f33
Bake Action operator: Added missing Bendy Bones support
2017-11-20 01:57:21 +13:00
Dalai Felinto
3ceb3512f8
Merge remote-tracking branch 'origin/master' into blender2.8
2017-11-08 18:35:31 -02:00
Bastien Montagne
5fc1faa737
I18n: add Hausa languages, since we now have a few messages translated. ;)
2017-11-08 10:11:37 +01:00
Antony Riakiotakis
4db67aab06
Fix OpenGL extension report in system info operator.
2017-10-23 22:22:22 +03:00
Campbell Barton
ea606a7847
Merge branch 'master' into blender28
2017-10-06 21:25:33 +11:00
Bastien Montagne
63482a5f2e
Fix T53002: Batch-Generate Previews generate empty or none image for large objects.
...
Camera clipping was left to default values, which won't work well for
very large (or small) objects. Now recompute valid clipping start/end
based on boundingbox of rendered data, and final location of camera.
2017-10-05 18:13:30 +02:00
Sergey Sharybin
63c472b4f9
Merge branch 'master' into blender2.8
2017-10-04 22:18:05 +05:00
Bastien Montagne
a22af1a84b
Fix i18n messages extraction script, and a few more UI messages...
2017-10-04 12:39:06 +02:00
Bastien Montagne
ad22d29dac
Some UI/messages fixes.
2017-10-03 21:32:46 +02:00
Sergey Sharybin
128c7c3ba1
Merge branch 'master' into blender2.8
2017-09-22 13:26:49 +05:00
Joshua Leung
fde45132de
Fix T52861: Keymap editor filter doesn't show shortcuts using "+"
2017-09-21 16:35:47 +12:00
Gaia Clary
a3b8f98913
revert commit c0a7e9b631 because it did not work as expected
2017-09-21 00:04:10 +02:00
Gaia Clary
c0a7e9b631
D2777: allow blank lines and lines with spaces/tabs in cut/paste
2017-09-20 22:48:38 +02:00
Bastien Montagne
f54f680a26
Fix T52842: Incorrect description for bpy.types.MeshTextureFace.uv
...
Tweak rna_info module to generate valid info also for multi-dimensional arrays.
2017-09-20 16:40:11 +02:00
Bastien Montagne
c4bbf1e4b0
Fix rna_info.py module, broken by recent changes in bpy.types presumably.
...
Hope fix is OK, seems to work with API generation script at least.
2017-09-20 16:40:11 +02:00
Sergey Sharybin
028c5592cd
Merge branch 'master' into blender2.8
2017-09-15 12:35:20 +05:00
Campbell Barton
2aa2bec43a
Fix T52442: bl_app_templates_system not working
...
Portable builds LOCAL files need to be
treated as system instead of using as a fallback to USER templates.
2017-09-15 05:57:37 +10:00
Sergey Sharybin
75f36266df
Merge branch 'master' into blender2.8
2017-09-14 16:17:22 +05:00
Campbell Barton
bd1f946413
Recent action-bake used Py3.6 syntax
2017-09-14 17:04:41 +10:00
Campbell Barton
7d7741d25f
Merge branch 'master' into blender2.8
2017-09-11 16:52:53 +10:00
Campbell Barton
6d2cd1719b
Bake Action: operate on selected objects
...
Previously only the active object was used.
Use coroutines to support baking frames for multiple objects at once,
without having to playback the animation multiple times.
2017-09-10 17:16:47 +10:00
Campbell Barton
a4a59d578c
PyAPI: Add object argument to bake_action
...
Avoids having to set the scene's active object first.
2017-09-10 14:30:03 +10:00
Campbell Barton
11a9434c2d
Resolve T52687: Add node label shows as 'Unknown'
...
Add type access method, need to extend to other types
for now just get node UI working properly again.
2017-09-09 22:56:58 +10:00
Campbell Barton
a133b74709
Merge branch 'master' into blender2.8
2017-09-08 03:18:39 +10:00
Campbell Barton
daf7aed849
PyAPI: use bl_rna_get_subclass for node API
...
Returns a default value instead of an error when the type isn't defined.
2017-09-08 00:03:01 +10:00
Campbell Barton
1601089ece
Merge branch 'master' into blender2.8
...
This discards node drawing changes which need to be written as shaders.
2017-09-07 14:53:06 +10:00
Campbell Barton
5d65aee07a
Workaround node types not being exposed
...
We might want to have a utility function for this,
for now just keep it working.
2017-09-07 05:17:02 +10:00
Campbell Barton
572b1a644f
Merge branch 'master' into blender2.8
2017-09-05 22:56:03 +10:00
Campbell Barton
b07e983b61
PyAPI: Add bpy.utils.register_classes_factory
...
Avoids having boiler plate register/unregister functions.
2017-09-05 00:24:29 +10:00
Campbell Barton
3789ab4166
PyAPI: fix rna_info for changes in type access
2017-09-04 16:39:13 +10:00
Campbell Barton
f4fe405da9
Manipulator: Add API target_get/set/range wrappers
...
Allows Python manipulators access the values of target properties
needed for Python to make use of the general target property interface.
2017-08-22 18:57:38 +10:00
Campbell Barton
a7362eb219
Manipulator: helper API for drawing custom shapes
...
This exposes 2 methods for manipulators:
- new_custom_shape
- draw_custom_shape
This can be used for script authors to create and re-use shapes
without dealing with lower level API's.
2017-08-21 00:11:16 +10:00
Brecht Van Lommel
c42c129393
Render: make Cycles and Evee support each other's output material nodes.
...
This changes the Cycles exporting and Cycles/Eevee UI code to support both
output material nodes, giving priority to the renderer native one. Still
missing is Eevee code to prefer the Eevee output node.
2017-08-01 19:13:41 +02:00
Campbell Barton
c558763ef5
Merge branch 'master' into blender2.8
2017-07-29 01:46:27 +10:00
Campbell Barton
4003409430
Fix factory setup using user scripts path still
2017-07-27 22:22:26 +10:00