Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-15Merge branch 'master' into blender2.8Sergey Sharybin
2018-02-15Cleanup: Remove BLI_ prefix from listbase macroSergey Sharybin
This is kind of doesn't matter where macro itself is defined. We should stick to the following: - If some macro is actually more an inline function, follow regular function name conventions. - If macro is a macro, type it in capitals. Use module prefix if that helps readability or it if helps avoiding accidents.
2018-02-08Depsgraph: Fix missing camera animation after visibility changesSergey Sharybin
Synchronize code in on_visible_update with depsgraph building. Need to update all cameras, since they might be hooked up to marker.
2018-02-07Depsgraph: More fixes for shape keysSergey Sharybin
Made shape keys to work for meshes. Also added missing code for curves. Curves and lattices will not have shape keys visible, since modifiers support is still to be done for them.
2018-02-07Depsgraph: Fix crash with shape keys and latticesSergey Sharybin
Only crash is fixed, still need to do something about missing recalc or something like that.
2018-02-07Depsgraph: Fix crash when visible update is called after tagging for updatesSergey Sharybin
It is possible to have non-NULL scene in graph which was never built yet, this happens when ID is tagged for update for non-built graph. Was causing crash opening deg_anim_pose_bones. Reported by Mai in IRC, thanks!
2018-01-24Fix T53646: Blender 2.8 multiple crashes in auto UVs generationSergey Sharybin
Make sure scene and view_layer set for depsgraph before running editors update. This is required since tagging might happen before we created depsgraph.
2018-01-24Depsgraph: Fix crash entering edit mode with CoW enabledSergey Sharybin
The issue was caused by some incompatibility of new API which expects ID block to be specified explicitly, while old code is tagging object's data using object's ID with OB_RECALC_DATA flag. We need to switch all areas to give proper ID and everything, but for until then we'd better stop crashing.
2018-01-19Merge branch 'master' into blender2.8Campbell Barton
2018-01-19Cleanup: reaname LINKLIST_FOREACH -> LISTBASECampbell Barton
LinkList's are a different API, no need to confuse things.
2018-01-17Depsgrapph: Fix/workaround for missing hairSergey Sharybin
The issue was happening because dependency graph did not inform particle settings as modified. This is a regression caused by tagging and flushing mechanism refactor. The real fix would be to make particle settings to use ID level recalc flags rather than own flags, which will also simplify relations around particle system, and particle settings evaluation. Reported by Mai in IRC.
2018-01-16Depsgraph: pass depsgraph to editors update context structSergey Sharybin
This way callbacks will know which depsgraph is being changed, and where evaluated data is coming from.
2017-12-20Merge branch 'master' into blender2.8Sergey Sharybin
2017-12-20Depsgraph: Move ID node to own fileSergey Sharybin
2017-12-19Depsgraph: Fix nexted node trees being tagged with wrong flagSergey Sharybin
2017-12-19Depsgraph: Rework tagging and flushing routinesSergey Sharybin
The goal is: have id->recalc flags set to components which got changed. To make it possible for render engines to check on a more granular basis what changed in the object. For example, is it a transform which changed or is it just some ID property changed which has nothing to do with rendering. The tricky part is: we don't want duplicated logic in tagging and flushing. In order to avoid this duplication, we store ID recalc flag in the component node type information. That type information could easily be accessed by both tagging and flushing routines. Remaining part of the changes are related on changing the way how tagging works. The new idea here is to have utility function which maps update tag to a component. This way we can easily set ID recalc flags right away. Without any duplication of ID recalc flags set in multiple flag handler functions. With all this being said, there should be no user measurable difference for now, it's a gigantic basement for some upcoming work and fixes.
2017-12-18Depsgraph: Cleanup, line lengthSergey Sharybin
2017-12-18Depsgraph: Replace iteration over ghash with iteration over flat arraySergey Sharybin
2017-12-15Depsgraph Cleanup, spellingSergey Sharybin
2017-12-15Depsgraph: Simplify logic around special case for node tree updateSergey Sharybin
2017-12-15Merge branch 'master' into blender2.8Sergey Sharybin
2017-12-15Move ID recalc flags into dedicated field in IDSergey Sharybin
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-13Depsgraph: it is still possible to have non-object to use OB_RECALC_DATA tagSergey Sharybin
Those flags are to be redone...
2017-12-13Depsgraph: Move data update tag to object->data itselfSergey Sharybin
2017-12-13Merge branch 'master' into blender2.8Sergey Sharybin
2017-12-13Depsgraph: Cleanup, use less explicit checks of LIB_TAG_ID_RECALC_DATASergey Sharybin
This is a part of ongoing work in Blender 2.8, where we need to replace `object->id.tag & LIB_TAG_ID_RECALC_DATA` with `object->data->id.tag & LIB_TAG_ID_RECALC` Should be no user measurable difference.
2017-12-04Depsgraph: Remove unused property based update tagsSergey Sharybin
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-01Depsgraph: Move away from setting old deprecated object recalc flagsSergey Sharybin
Those shouldn't be used anywhere for real now.
2017-11-30Depsgraph: Tag all id_types on_visible_updateDalai Felinto
We need all id nodes to be evaluated at least once when opening a file. This is particuarly required for the upcoming group collection patch.
2017-11-30Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-30Depsgraph: More full explanation for previous commitSergey Sharybin
2017-11-30Depsgraph: Fix DEG_id_type_tag commentDalai Felinto
2017-11-28Depsgraph: Wrap context used for editors update callback into a structureSergey Sharybin
This way we can extend it much easier.
2017-11-28Depsgraph: Don't call DEG ID update functions directlySergey Sharybin
There might be much more logic involved there, also we might not know proper evaluated CoW pointer there yet. So we leave this to dependency graph to decide what exactly to do here.
2017-11-24Depsgraph: Allow tagging whole scene for base flags flushSergey Sharybin
2017-11-24Depsgraph: Fix crash when deleting object which is linked both directly and ↵Sergey Sharybin
indirectly
2017-11-24Depsgraph: Make code a bit more robust against tagging indirectly linked objectsSergey Sharybin
2017-11-24Depsgraph: Add special cases to deal with multiple objects selection updateSergey Sharybin
The idea then is to avoid doing depsgraph tag for each of the object which selection is changed (which could be tricky to do anyway due to lots of areas of selection code where this could happen), and simply tag scene's with selection update tag. This will involve synchronization of flags from base to objects, which is rather cheap anyway.
2017-11-24Depsgraph: Use depsgraph to handle edit mode selectionSergey Sharybin
This is crucial bit since batch cache is stored in the evaluated object, meaning we can't tag it's hatch cache dirty from the notifier system. Not easily at least. Better to leave this job to depsgraph, it knows all the copies of data.
2017-11-23Rename any instance of scene layer or render layer in code with view layerDalai Felinto
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-08Subject: [PATCH 2/3] Depsgraph: Replace iteration over ghash with iteration ↵Sergey Sharybin
over flat array
2017-11-07Depsgraph: Simplify some workarounds and make API closer to finalSergey Sharybin
2017-11-06Depsgraph: Cleanup, remove depsgraph_legacy from depsgraph_tag.ccSergey Sharybin
2017-11-03Depsgraph: Add utility function to tag ID for update within a specific graphSergey Sharybin
2017-10-26Fix / workaround T53164: Crashes with background scenesSergey Sharybin
Simple workaround in on_visible_update(). There might be more missing updates or tags.
2017-10-24Depsgraph: Switch to explicit graph specification for tag flushSergey Sharybin
2017-10-24Depsgraph: Begin bringing API to pass explicit graphSergey Sharybin
This is a first step towards an updated API where we pass explicit graph rather than a scene. This is because we can no longer deduct which graph to use since it will depend on a context. Will happen in several steps, so bisecting will not be such a pain.
2017-10-24Depsgraph: Cleanup, remove unused functionSergey Sharybin
It's unlikely we will ever want to flush tags on all possible scenes or dependency graphs. It wouldn't be thread safe at a best.
2017-10-18Depsgraph: Make Copy-on-Write a command line optionSergey Sharybin
Before it was a compile time option which was not very easy to use or test. Now the project is getting more mature, so very soon we will be able to call for a public tests of limited features. The copy-on-write (which includes animation, modifiers) is enabled using --enable-copy-on-write command line argument.
2017-10-02Depsgraph: Fix/workarounf when tagging light probe for data updateSergey Sharybin