Fix T44689: New Depsgraph crash
Simple highschool rated issue -- uninitialized variable :)
This commit is contained in:
parent
1a0fb7e9ae
commit
ae9e38c5ad
Notes:
blender-bot
2023-02-14 09:08:31 +01:00
Referenced by issue #44689, New Depsgraph crash
|
@ -114,6 +114,10 @@ void TimeSourceDepsNode::tag_update(Depsgraph *graph)
|
|||
|
||||
/* Root Node ============================================== */
|
||||
|
||||
RootDepsNode::RootDepsNode() : time_source(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
RootDepsNode::~RootDepsNode()
|
||||
{
|
||||
OBJECT_GUARDED_DELETE(time_source, TimeSourceDepsNode);
|
||||
|
|
|
@ -127,6 +127,7 @@ struct TimeSourceDepsNode : public DepsNode {
|
|||
|
||||
/* Root Node. */
|
||||
struct RootDepsNode : public DepsNode {
|
||||
RootDepsNode();
|
||||
~RootDepsNode();
|
||||
|
||||
TimeSourceDepsNode *add_time_source(const string &name = "");
|
||||
|
|
Loading…
Reference in New Issue