Re: 3D View goes blank, how to "refresh"

by c0d3z3r0 » Thu Dec 26, 2024 10:40 pm

I had a very similiar problem: when opening any properties windows for furniture, the 3D view would go blank. I fixed this by killing this 3D view refresh code:

Code: Select all

diff --git a/SweetHome3D/src/com/eteks/sweethome3d/j3d/Component3DManager.java b/SweetHome3D/src/com/eteks/sweethome3d/j3d/Component3DManager.java
index 181000450..bcfb6ac3b 100644
--- a/SweetHome3D/src/com/eteks/sweethome3d/j3d/Component3DManager.java
+++ b/SweetHome3D/src/com/eteks/sweethome3d/j3d/Component3DManager.java
@@ -259,7 +259,7 @@ public class Component3DManager {
         canvas3D = new Canvas3D(configuration, offscreen);
       }
 
-      if (!offscreen
+      if (false && !offscreen
           && OperatingSystem.isLinux()
           && OperatingSystem.isJavaVersionGreaterOrEqual("1.7")) {
         // Add a listener to the parent window once known that will repaint the canvas in 100 ms