Sergey Sharybin
f1ad6b43b3
Depsgraph: Cleanup, split build_animation
2017-12-06 10:21:33 +01:00
Sergey Sharybin
9f9b666d9a
Depsgraph: Correct fallback for the parameters calculation
...
We can't use a single component here, sine it might consist of multiple
operations. So, for example, having driver operation will confuse targets
of another driver.
2017-12-06 10:21:33 +01:00
Sergey Sharybin
b5a8d0acaf
Depsgraph: Cleanup, split driver builder function
2017-12-06 10:21:33 +01:00
Sergey Sharybin
3e9cd53687
Depsgraph: Cleanup, deduplicate as much as possible in build_driver
2017-12-06 10:21:33 +01:00
Sergey Sharybin
8c4363e3b1
Depsgraph: Remove old comments which are likely outdated
2017-12-06 10:21:33 +01:00
Sergey Sharybin
8912e4faef
Depsgraph: Replace last obvious part of driver builder with generic RNA code
2017-12-06 10:21:33 +01:00
Sergey Sharybin
b26992fe6e
Depsgraph: Add criteria for RNA_Key
2017-12-06 10:21:33 +01:00
Sergey Sharybin
fe5e8593b7
Depsgraph: Remove confusing ID node criteria
...
it sometimes overrides all possible other criteria, even tho we might want to
be very specific about what component we are looking for here.
2017-12-06 10:21:33 +01:00
Sergey Sharybin
35364e2fb2
Depsgraph: Use generic function for shape key driver target
...
There was a second place for shape keys.
2017-12-06 10:21:33 +01:00
Sergey Sharybin
070c735b13
Depsgraph: Fix wrong relations built for drivers
...
When target was changed from bone to regular object, new dependency graph was
still trying to build relations as if driver was using bone.
2017-12-06 10:21:33 +01:00
Sergey Sharybin
f8fd8b0744
Depsgraph: Use generic function for shape key driver target
2017-12-06 10:21:33 +01:00
Sergey Sharybin
235a68d8f3
Depsgraph: Use generic function for modifiers driver target
2017-12-06 10:21:32 +01:00
Sergey Sharybin
7586266343
Depsgraph: Use existing utility function to get driver target node
...
Only done for pose bone for now, but the idea is to go case bu case in
build_driver and move all custom logic from there to find_node_from_pointer().
2017-12-06 10:21:32 +01:00
Sergey Sharybin
3795e37c62
Depsgraph: Cleanup, split build_driver function up
2017-12-06 10:21:32 +01:00
Sergey Sharybin
52e81de9f7
Depsgraph: Don't see reason to have special case for bone's RNA path
2017-12-06 10:21:32 +01:00
Sergey Sharybin
97e92d6f3e
Depsgraph: SImplify chjecks in directly address bone
2017-12-06 10:21:32 +01:00
Sergey Sharybin
284f106c91
Depsgraph: begin use of RNAPathKey instead of re-implemented checks in driver variables
2017-12-06 10:21:32 +01:00
Sergey Sharybin
0cd2303e67
Depsgraph: Cleanup, don't use static qualifier inside of anonymous namespace
2017-12-06 10:21:32 +01:00
Sergey Sharybin
a68e10be5e
Depsgraph: Correct RNA pointer criteria to deal with bone custom properties
2017-12-06 10:21:32 +01:00
Sergey Sharybin
40822ae4e9
Depsgraph: Cleanup, indentation
2017-12-04 15:50:38 +01:00
Sergey Sharybin
0f8228a890
Depsgraph: Add parameters nodes for bone custom properties
...
Currently shouldn't make any difference, but this is something what needs to be
done to sanitize drivers relations )with the idea to re-use some generic code
to get operations for driver variables.
2017-12-04 15:10:14 +01:00
Sergey Sharybin
d974d25497
Depsgraph: Cleanup, move RNA key constructor to it's file
2017-12-04 14:17:17 +01:00
Sergey Sharybin
d5e491c9a7
Depsgraph: Cleanup, don't use bracers in relations names
...
Those don't bring any information.
2017-12-04 14:17:17 +01:00
Sergey Sharybin
5f86d6e6eb
Depsgraph: Cleanup, node from RNA pointer search
2017-12-04 14:17:17 +01:00
Sergey Sharybin
6b72d87def
Depsgraph: Remove unused property based update tags
...
Those are unused, and not clear whether we will ever support this.
Seems to be better having more like "component" tags, would be less magic
involved to guess what exactly is to be tagged.
2017-12-04 14:17:17 +01:00
Sergey Sharybin
059b878240
Depsgraph: More full explanation for previous commit
2017-11-30 11:57:21 +01:00
Dalai Felinto
4b9b9dbf93
Depsgraph: Fix DEG_id_type_tag comment
2017-11-30 08:53:11 -02:00
Sergey Sharybin
5b5939c6e6
Depsgraph: Cleanup, use explicit NULL pointer checks
2017-11-29 17:55:28 +01:00
Sergey Sharybin
0af91d7fe6
Cleanup: Remove unused argument
2017-11-29 16:15:52 +01:00
Sergey Sharybin
c8b1a83a8c
Depsgraph: Fix assert failure
2017-11-29 14:58:37 +01:00
Sergey Sharybin
e3f2b1676c
Depsgraph: Make sure unexpected configuration does not happen
2017-11-27 14:51:49 +01:00
Sergey Sharybin
1caa267ee6
Depsgraph: Cleanup, indentation
2017-11-24 15:45:41 +01:00
Sergey Sharybin
5f7981243e
Depsgraph: Allow finding operations after construction is done
2017-11-24 15:38:20 +01:00
Sergey Sharybin
a8b97b2e41
Depsgraph: Deduplicate operation node finding logic
2017-11-24 15:35:42 +01:00
Sergey Sharybin
d232363290
Depsgraph: Use proper return type for find_node method
2017-11-24 15:34:53 +01:00
Sergey Sharybin
d80c1e1e11
Depsgraph: Use get_ prefix for function which expect operation to exists
2017-11-24 15:32:29 +01:00
Sergey Sharybin
d8f33fc818
Depsgraph: Make has_ prefixed function to return boolean
2017-11-24 15:26:54 +01:00
Sergey Sharybin
93e8a045df
Depsgraph: Introduce explicit method which finds operation or returns NULL
2017-11-24 15:24:33 +01:00
Sergey Sharybin
68654c0be5
Depsgraph: Make more clear what find_operation() is doing for component
2017-11-24 15:21:50 +01:00
Sergey Sharybin
75a87abdc9
Depsgraph: Cleanup, deduplicate code around component registration
2017-11-23 15:23:19 +01:00
Sergey Sharybin
f2842ac65e
Depsgraph: Cleanup, split build_object() a bit
2017-11-23 12:01:31 +01:00
Sergey Sharybin
f3fa5c1258
Depsgraph: Cleanup, always call full object
2017-11-23 11:39:28 +01:00
Campbell Barton
40c8a18229
Cleanup: style
2017-11-18 17:22:54 +11:00
Sergey Sharybin
9c0a38ee33
Depsgraph: Add missing checks from previous commit
2017-11-17 15:27:02 +01:00
Sergey Sharybin
c45afcfa81
Depsgraph: Don't make non-dynamic hair dependent on time
...
This way hair system used for static forest does not make playblack slow.
A bit dangerous, but let's see how far we can go!
2017-11-17 14:57:57 +01:00
Dalai Felinto
f402638211
Cleanup on depsgraph logic
2017-11-13 12:17:14 -02:00
Sergey Sharybin
8a03e4d409
Depsgraph: Fix relations for metaballs
...
Initially spotted and investigated by Dalai and Germano.
2017-11-13 14:43:08 +01:00
Sergey Sharybin
8d7ec519df
Depsgraph: Add missing handlers of node IDs
...
Worst thing was that point density did not pull object into dependency graph,
which could lead to wrong render results.
2017-11-09 10:33:44 +01:00
Sergey Sharybin
5e38ee996c
Depsgraph: Remove chains of scene being passed all over in relations builder
2017-11-09 10:33:44 +01:00
Sergey Sharybin
f424d5b5c9
Depsgraph: Cleanup, remove scene being passed all over
...
Use the state one instead.
2017-11-09 10:33:44 +01:00