Added reasons to assertions

This commit is contained in:
YourWishes committed 2023-07-23 10:15:37 -07:00
1 parent 1b0218c9f3
commit a5b36fb24a
79 files changed
+359 -291

No files matched your search

@@ -46,8 +46,8 @@
<!-- Code to handle scene resizing and auto adjusting the scene camera -->
<code type="init">
useEvent([&amp;]{
assertNotNull(camTexture);
assertNotNull(image);
assertNotNull(camTexture, "Camera texture cannot be null.");
assertNotNull(image, "Image cannot be null.");
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());
}, image->eventAlignmentUpdated);
</code>