Germano
c2ad5e805a
Fix triangles indexbuf of Curve Displists was being discarded incorrectly
...
They were discarded when shaded surfaces were requested thus bringing glitches to the outline of the selected Displists Objects
2017-12-16 22:22:21 -02:00
Germano
3713de163e
Fix triangles of the Displists were being drawn in the opposite direction
2017-12-16 21:58:16 -02:00
Campbell Barton
45434c75a0
Manipulator: change cursor for navigation axis
...
Wasn't easy to see
2017-12-16 19:28:39 +11:00
Campbell Barton
625d72ed48
Manipulator: draw 2d manipulators over view border
...
Needed so passepartout doesn't cover 2d manipulators.
2017-12-16 19:05:27 +11:00
Campbell Barton
d855fc4dad
App Template: use manipulator flag
...
So templates can enable manipulators.
Also remove invalid enum set.
2017-12-16 18:36:49 +11:00
Campbell Barton
468ac90317
Manipulator: view3d navigation buttons
...
Added for Blender101 template.
Disabled by default, enable as a preference.
Exposes rotate, pan, zoom, persp-ortho & camera toggle.
2017-12-16 04:21:30 +11:00
Campbell Barton
c2cc42742d
Manipulator: support single press button actions
...
While not the main purpose of manipulators, it's handy to be able
to use operators without modal callbacks sometimes.
2017-12-16 04:08:37 +11:00
Sergey Sharybin
68ffb2a267
Merge branch 'master' into blender2.8
2017-12-15 17:55:23 +01:00
Sergey Sharybin
50ef25d73f
Depsgraph: Cleanup, remove unused function
2017-12-15 17:47:15 +01:00
Sergey Sharybin
da570fcbb4
Depsgraph: Cleanup, make naming more understandable
2017-12-15 17:46:30 +01:00
Sergey Sharybin
3d72b94196
Depsgraph: Use array instead of set for node factory
...
Avoids extra time spent on hashing and such.
Old comment is kind of weird, because types we can totally make a sequent
integer values.
2017-12-15 17:43:07 +01:00
Sergey Sharybin
4ce38abfcd
Depsgraph: Add named constant with number of node types
2017-12-15 17:39:01 +01:00
Sergey Sharybin
68a7f5e594
Depsgraph: Don't use negative enum value
...
Not sure why it sohuld be negative, we shouldn't be using any explicit value
comparison.
2017-12-15 17:38:12 +01:00
Julian Eisel
5cb70a89e1
Fix failing assert when reading workspace list from workspaces.blend
2017-12-15 17:26:23 +01:00
Sergey Sharybin
114013de0d
Merge branch 'master' into blender2.8
2017-12-15 17:24:28 +01:00
Sergey Sharybin
c795309c03
Depsgraph Cleanup, spelling
2017-12-15 17:23:57 +01:00
Sergey Sharybin
6609be0520
Depsgraph: Simplify logic around special case for node tree update
2017-12-15 17:23:57 +01:00
Sergey Sharybin
1797923f32
Depsgraph: Cleanup, extra whitespace
2017-12-15 17:23:57 +01:00
Sergey Sharybin
76a1046478
Depsgraph: Cleanup, use names for particle system tag flags
2017-12-15 17:23:57 +01:00
Sergey Sharybin
f88ce5bf27
Depsgraph: Remove special exception logic from ID node tagging
...
This is something what we should be limiting as much as possible, it is
enough already to have special mapping cases in depsgreaph_depsgraph_tag.
2017-12-15 17:23:57 +01:00
Sergey Sharybin
5e28b71457
math utils: Add utilities to scan bit and clear it
2017-12-15 16:54:28 +01:00
Sergey Sharybin
de9e5a0926
Math utils: Go away form naive code for highest_order_bit_uint
2017-12-15 16:54:28 +01:00
Sergey Sharybin
412de222f8
Math utils: Add bit scan operations
2017-12-15 16:54:28 +01:00
Sergey Sharybin
02ec0b53df
Math utils: Make it more clear what the functions are returning
2017-12-15 16:54:28 +01:00
Sergey Sharybin
2aa0f8a41b
Math utils: Cleanup, use _uint suffix for function which operates on uint
2017-12-15 16:54:28 +01:00
Julian Eisel
9515737b55
Fix missing refresh of editors when changing workspace view-layer
...
Needs to use new messaging system.
2017-12-15 16:09:12 +01:00
Sergey Sharybin
2b25d8ea30
Depsgraph: Fix assignment to wrong flags
2017-12-15 14:42:42 +01:00
Sebastian Koenig
ff0d3c520f
Tracking: Cleanup, fix typo in variable name
2017-12-15 13:53:44 +01:00
Sergey Sharybin
6b62f1dcb9
Tracking: Pass all markers to autotrack at once
...
This solves delay before tracking actually starts.
The issue is reported by Sebastian over IRC, thanks!
2017-12-15 12:51:53 +01:00
Sergey Sharybin
e50442418a
Tracking: Cleanup, make autotrack context creation code more granular
2017-12-15 12:37:23 +01:00
Sergey Sharybin
4cc0f09881
Tracking: Cleanup, use more const qualifiers when appropriate
2017-12-15 12:23:53 +01:00
Dalai Felinto
0b5616aef1
Depsgraph: cleanup DEGOIterObjectData > DEGObjectIterData
2017-12-15 08:59:05 -02:00
Dalai Felinto
90b7917687
Depsgraph: Make DEG_OBJECT_ITER more granular
...
It is not nice to assume we always want visible or directly linked objects.
So we make it as granular as we can.
2017-12-15 08:59:04 -02:00
Dalai Felinto
3a47fb764c
Depsgraph / Render / Collection: Tag groups for rendering
...
We need to tag groups before and after rendering, so the group collections
viewport and render visibility are taken into account.
Note: This is a workaround, that will be removed once the render engine have
its own depsgraph, instead of re-using the viewport depsgraph.
2017-12-15 08:59:04 -02:00
Dalai Felinto
1f5106de61
Group collection viewport/render options and remove collection visibility
...
Users can change the group collection visibility in the outliner
when looking at groups.
Regular collections on the other hand don't have any special visibility control,
if you need a collection to be invisible during render, either don't link it
into the view layer used for F12, or disable it.
This includes:
* Updated unittests - update your lib/tests/layers folder.
* Subversion bump - branches be aware of that.
Note:
Although we are using eval_ctx to determine the visibility of a group collection
when rendering, the depsgraph is still using the same depsgraph for the viewport
and the render engine, so at the moment the render visibility is ignored.
Following next is a workaround for this separately to tag the groups before and
after rendering to tackle that.
2017-12-15 08:56:48 -02:00
Sergey Sharybin
7402b8ec74
Draw manager: Cleanup, unused variable
2017-12-15 10:54:00 +01:00
Sergey Sharybin
f4140f2c81
Merge branch 'master' into blender2.8
2017-12-15 10:45:20 +01:00
Dalai Felinto
2ddee0ba5a
Fix dupli-frames (and other duplis)
...
Even non-group dupli objects need to get the overrides from somewhere.
Getting them from dupli_parent.
2017-12-15 07:14:25 -02:00
Sergey Sharybin
c4046e9082
Move ID recalc flags into dedicated field in ID
...
Currently this is a no-visible-changes change, but the idea is to use this
dedicated flag to tell which exact components of ID changed, make it more
granular than just OBJECT and OBJECT_DATA. Allow setting this field based
on what components new dependency graph flushed on evaluation.
2017-12-15 09:43:18 +01:00
Dalai Felinto
569e29c49c
Fix RNA crash for objects without collection properties
...
This would happen if you tried to access the collection property for an object
that has not being evaluated by the depsgraph.
2017-12-14 20:17:27 -02:00
Germano
100e9aa15f
Draw Manager: Texture space support for Curve and Metaball objects
2017-12-14 17:53:27 -02:00
Bastien Montagne
c027be3189
Fix broken collada from recent merge rBb83b6afe5572ae29b4ad105dd8001c3343e2205b.
...
Please make minimal checks on what you do when merging!
2017-12-14 20:25:26 +01:00
Germano
aa1054acf8
Draw Manager: Edit Curve Mode: Fix "Not freed memory blocks"
...
`e_data.overlay_vert_sh` was not being freed when quitting blender.
2017-12-14 15:16:09 -02:00
Germano
06def089d3
Draw Manager: Recalculate batch of Curves, Surfaces and Texts when a property is changed
2017-12-14 14:44:20 -02:00
Germano
6b794565aa
Fix crash with DispLists without vertices
...
Wee must return VertBuffers even when its size is zero
2017-12-14 14:31:08 -02:00
Sergey Sharybin
400d59be9b
DNA: Add dedicated recalc flag to ID
...
Currently unused, but this is where LIB_TAG_ID_RECALC* flags will go.
Also modified other DNA to make pointer property being followed by pointer.
Makes it easier to keep track of alignment and extend nested structures without
ruining anything.
2017-12-14 15:25:51 +01:00
Germano
14ac709455
Eevee: Support for objects of type Curve, Surface and Text
2017-12-14 12:22:55 -02:00
Germano
5b5de35604
Support for Batchs split by material for objects of type Curve, Surface, and Text
...
**ToDo:**
- add vertbuff for UV (what can be adapted from `dl_surf_to_renderdata`)
2017-12-14 12:21:38 -02:00
Sergey Sharybin
bb9d068ccc
Depsgraph: Cleanup, use more explicit way to fill in a structure
...
The possible issue with just listing arguments is that it might not be clear
what particular value is used for. For example, is it a scene itself, or is
it a parent scene?
Not as if it's not very clear now, but better be explicit for the future,
and me reading code in 10 years.
2017-12-14 11:09:18 +01:00
Campbell Barton
b83b6afe55
Merge branch 'master' into blender2.8
2017-12-14 12:51:26 +11:00