alelievr / Mixture

Mixture is a powerful node-based tool crafted in unity to generate all kinds of textures in realtime
https://trello.com/b/2JiH2Vsp/mixture
MIT License
1.18k stars 124 forks source link

[BUG] Crash when using other graph based on NodeGraphProcessor #31

Closed dimozaprianov closed 3 years ago

dimozaprianov commented 3 years ago

What happened? Crashes here (there are several instances of this code)

        static bool IsCompatibleWithRealtimeGraph(BaseGraph graph)
            => (graph as MixtureGraph).type == MixtureGraphType.Realtime;

Crashes when trying to create new node in no-MixtureGraph. For me it is obvious the code here is not shielded in those cases and this seems as a problem.

alelievr commented 3 years ago

Thanks for the bug report :)

it should be fixed in master now (example: https://github.com/alelievr/Mixture/blob/master/Packages/com.alelievr.mixture/Runtime/Nodes/Utils/SelfNode.cs#L69)