Blender Git Commits

Blender Git "temp-dynamic-overrides" branch commits.

Page: 2 / 5

May 27, 2018, 22:42 (GMT)
New Affected Collection struct

No point in using anonymous LinkData structs.
May 27, 2018, 19:39 (GMT)
Cleanup
May 27, 2018, 17:23 (GMT)
Update the viewport when changing dynamic override properties
May 27, 2018, 17:23 (GMT)
Util function to find view layer by dynamic property
May 27, 2018, 17:22 (GMT)
Extra make sure view3d updates for dynamic override

Without this we do not get updates when deleting/adding override
sets and affected collections.

We should probably replace this by manually publishin RNA updates though.
May 27, 2018, 17:21 (GMT)
Make sure viewport updates on dynamic override and override set changes
May 27, 2018, 17:20 (GMT)
Depsgraph: Tag depsgraph id based on id type
May 27, 2018, 16:33 (GMT)
BKE_idtype_to_main_data

Function to map ID_Type to bmain-> listbases.
May 27, 2018, 16:23 (GMT)
Fix 'broken' Multiply operation for Dynamic Overrides.

No reason to store operands of Multiply op in a separate property! Let's
keep things simple ;)
May 27, 2018, 14:34 (GMT)
Fix broken RNA override apply in Dynamic case.

Was accessing some pointers it should not access in Dynamic case.
Typical stupid mistakes that happen when you code without being able to
test your changes... ;)

Also made code a bit clear by using a global bool is_dynamic_override,
instead of using crappy NULL-pointer check.
May 25, 2018, 18:59 (GMT)
Hacky code just to try RNA_struct_dynamic_override_apply

It is crashing now, I tried either adding a scene setting (EEVEE AO), or
object settings (ob.color).

This also shows a few problems:
* We can't simply tag Scene to update when changing an override set, we need
the tagging to flush down to the scene objects.

* For scene settings we may want to do at this moment in COW evaluation, however
for objects the implementation is a bit more tricky. Because we need to change
the data owned by the object as well. For example, the material.

* In this case it is almost as if we want a cow-cow ID (the OVERRIDEN id should be
shared by all the objects that are being overridden.

* Also the affected collections thing is to be handled somehow.
May 25, 2018, 18:40 (GMT)
Tag depsgraph COW for update when changing dynamic overrides
May 25, 2018, 17:52 (GMT)
Merge remote-tracking branch 'origin/blender2.8' into temp-dynamic-overrides
May 25, 2018, 16:03 (GMT)
Merge remote-tracking branch 'origin/blender2.8' into temp-dynamic-overrides

Big merge, this addresses all the conflicts due to the Group > Collection change.
May 17, 2018, 16:11 (GMT)
Dynamic override: add RNA callback to apply an override.

Theoritical code for now, since we still miss the depsgraph part to hook
it up to actual evaluation.
May 17, 2018, 15:14 (GMT)
Merge branch 'blender2.8' into temp-dynamic-overrides

Conflicts:
source/blender/makesrna/intern/rna_rna.c
May 17, 2018, 14:43 (GMT)
Initial step to support dynoverride eval in RNA code.

Using as much as possible static override code. Againm ideally we'll
merge back both into a fully single system after everything is working.

Also found a way to reduce a bit verbosity of code here...
May 17, 2018, 12:16 (GMT)
Dynamic Override: Add support for arrays of bools and ints, check array size!
May 17, 2018, 10:56 (GMT)
Dynamic Override: Share a tiny bit more code betzeen dynamic and static overrides.

Renamed dynamic's override_mode to 'operation' (same as with static) and
made it use same enum values.

Note that ultimately/ideally both would only use one data structure,
this should be manageable and will simplify RNA apply code (which is to
be shared by both), but that kind of cleanup/refactor we can do once we
have a working system, just before merging into blender2.8.
May 17, 2018, 09:38 (GMT)
Merge branch 'blender2.8' into temp-dynamic-overrides
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021