cleanup
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 7 Aug 2021 13:46:07 +0000 (08:46 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Sat, 7 Aug 2021 13:46:07 +0000 (08:46 -0500)
bin/onyx
include/onyxastnodes.h
modules/ui/ui.onyx
src/onyxutils.c

index 9181d948936d0e19d3088cb6851deaef7018ae7d..27fc96e3b4c91a13a61076a871222134c81c0895 100755 (executable)
Binary files a/bin/onyx and b/bin/onyx differ
index 4d7c137df8db0a858b2637a43891b7d75b76bde7..cda6fcf39b0c609bb4c2995ab9a51c4c8e87167d 100644 (file)
@@ -939,11 +939,10 @@ struct AstPolySolution {
 };
 
 struct AstSolidifiedFunction {
-    b32 header_complete: 1;
-    b32 body_complete:   1;
-    
     AstFunction* func;
     Scope*       poly_scope;
+
+    b32 header_complete: 1;
 };
 
 struct AstPolyProc {
index 1cdb99f872e622384b1b4317550cb297c950ef9f..92e06f09b5fc956d59bcd152676a1c431289b4d8 100644 (file)
@@ -165,7 +165,14 @@ Animation_State :: struct {
     click_time := 0.0f;
 }
 
+has_active_animation :: () -> bool {
+    for ^anim: animation_states.entries {
+        if anim.value.hover_time != 0.0f || anim.value.hover_time != 1.0f do return true;
+        if anim.value.click_time != 0.0f || anim.value.click_time != 1.0f do return true;
+    }
 
+    return false;
+}
 
 
 // Utilities
index 359482453e26fb974545458930f90084b29310cd..beedd9d96fc413f474c6fd22b22217fe9c1dfd0e 100644 (file)
@@ -373,7 +373,6 @@ static AstSolidifiedFunction generate_solidified_function(
 
     AstSolidifiedFunction solidified_func;
     solidified_func.header_complete = 0;
-    solidified_func.body_complete = 0;
 
     // NOTE: Use the position of token if one was provided, otherwise just use NULL.
     OnyxFilePos poly_scope_pos = { 0 };