From 5bf5dd98d6f5451659ead43a5acdb96e2dc28f67 Mon Sep 17 00:00:00 2001 From: BelicusBr Date: Sun, 12 Feb 2023 03:56:51 -0300 Subject: [PATCH] #Update-vs1.0.16 --- CHANGELOG.md | 4 ++++ Runtime/IGU/Auxiliaries/IGUContainer.cs | 4 ++-- com.cobilas.unity.graphics.gpack | 3 ++- package.json | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07c151d..15ce6ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## [1.0.16] - 12/02/2023 +### Fixed +No metódo `IGUConatiner.AddDeepAction(int)` á instrução `RefreshDepth();` era executada antes do objeto `DeepAction` +o que fazia que o primeiro objeto `DeepAction` não fosse adicionado ao evento OnIGU. ## [1.0.15] - 09/02/2023 ### Fixed #### Profundidade não aplicada corretamente [#ISU-IGU0001](https://github.com/BelicusBr/com.cobilas.unity.graphics/issues/2) diff --git a/Runtime/IGU/Auxiliaries/IGUContainer.cs b/Runtime/IGU/Auxiliaries/IGUContainer.cs index 5be12fc..98b4c22 100644 --- a/Runtime/IGU/Auxiliaries/IGUContainer.cs +++ b/Runtime/IGU/Auxiliaries/IGUContainer.cs @@ -85,16 +85,16 @@ private DeepAction AddDeepAction(int depth) { if (depth < deepActions[I].Depth) { deep = new DeepAction(depth); //onIGU += deep.OnIGU; - RefreshDepth(); alteredDepth += deep.AlteredDepth; ArrayManipulation.Insert(deep, I, ref deepActions); + RefreshDepth(); return deep; } deep = new DeepAction(depth); //onIGU += deep.OnIGU; - RefreshDepth(); alteredDepth += deep.AlteredDepth; ArrayManipulation.Add(deep, ref deepActions); + RefreshDepth(); return deep; } diff --git a/com.cobilas.unity.graphics.gpack b/com.cobilas.unity.graphics.gpack index d24560a..3e5748d 100644 --- a/com.cobilas.unity.graphics.gpack +++ b/com.cobilas.unity.graphics.gpack @@ -11,7 +11,8 @@ "1.0.12", "1.0.13", "1.0.14", - "1.0.15" + "1.0.15", + "1.0.16" ], "gitDependencies": [ { diff --git a/package.json b/package.json index 9fb44f8..c628a42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.cobilas.unity.graphics", - "version": "1.0.15", + "version": "1.0.16", "displayName": "Cobilas Graphics", "description": "Pacote que adiciona e manipula elementos", "licensesUrl": "https://github.com/BelicusBr/com.cobilas.unity.graphics/blob/main/LICENSE.md",