fix illegally skipping geometry update of text node

Wed, 10 Apr 2024 19:24:39 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 10 Apr 2024 19:24:39 +0200
changeset 53
19faf91d43d7
parent 52
6d100092fcd4
child 54
cb94d983e3dd

fix illegally skipping geometry update of text node

the reason is that the scene will not try again to update the node when it is just unhidden

src/text.c file | annotate | diff | comparison | revisions
--- a/src/text.c	Wed Apr 10 19:20:44 2024 +0200
+++ b/src/text.c	Wed Apr 10 19:24:39 2024 +0200
@@ -55,11 +55,6 @@
 }
 
 static void asc_text_update(AscText *node) {
-    // short circuit if fully transparent or hidden, we don't need anything
-    if (node->color.alpha == 0 || node->hidden) {
-        return;
-    }
-
     // Generate new texture, if required
     if (asc_texture_uninitialized(&node->tex)) {
         asc_texture_init_rectangle(&node->tex);

mercurial