@@ -176,6 +176,7 @@ private void initComponents() {
176176 jLabel3 = new javax .swing .JLabel ();
177177 jTextField1 = new javax .swing .JTextField ();
178178 jCheckBox1 = new javax .swing .JCheckBox ();
179+ animationCheckBox = new javax .swing .JCheckBox ();
179180 materialPreviewWidget1 = new com .jme3 .gde .materials .multiview .widgets .MaterialPreviewWidget ();
180181 additionalRenderStatePane = new javax .swing .JTabbedPane ();
181182 jScrollPane10 = new javax .swing .JScrollPane ();
@@ -294,6 +295,15 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
294295 }
295296 });
296297
298+ animationCheckBox .setSelected (false );
299+ org .openide .awt .Mnemonics .setLocalizedText (animationCheckBox , "Enable Animation" );
300+ animationCheckBox .setToolTipText ("Enable continuous rendering for animated materials" );
301+ animationCheckBox .addActionListener (new java .awt .event .ActionListener () {
302+ public void actionPerformed (java .awt .event .ActionEvent evt ) {
303+ animationCheckBoxActionPerformed (evt );
304+ }
305+ });
306+
297307 additionalRenderStatePane .setTabLayoutPolicy (javax .swing .JTabbedPane .SCROLL_TAB_LAYOUT );
298308 additionalRenderStatePane .setMinimumSize (new java .awt .Dimension (100 , 100 ));
299309 additionalRenderStatePane .setPreferredSize (new java .awt .Dimension (380 , 355 ));
@@ -326,6 +336,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
326336 .addComponent (jToolBar2 , javax .swing .GroupLayout .DEFAULT_SIZE , javax .swing .GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE ))
327337 .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
328338 .addComponent (jCheckBox1 , javax .swing .GroupLayout .PREFERRED_SIZE , 148 , javax .swing .GroupLayout .PREFERRED_SIZE )
339+ .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
340+ .addComponent (animationCheckBox , javax .swing .GroupLayout .PREFERRED_SIZE , 148 , javax .swing .GroupLayout .PREFERRED_SIZE )
329341 .addGap (39 , 39 , 39 ))))
330342 );
331343 editorPanelLayout .setVerticalGroup (
@@ -336,7 +348,8 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
336348 .addContainerGap ()
337349 .addGroup (editorPanelLayout .createParallelGroup (javax .swing .GroupLayout .Alignment .TRAILING )
338350 .addComponent (jToolBar3 , javax .swing .GroupLayout .PREFERRED_SIZE , 25 , javax .swing .GroupLayout .PREFERRED_SIZE )
339- .addComponent (jCheckBox1 ))
351+ .addComponent (jCheckBox1 )
352+ .addComponent (animationCheckBox ))
340353 .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
341354 .addComponent (jToolBar2 , javax .swing .GroupLayout .PREFERRED_SIZE , 25 , javax .swing .GroupLayout .PREFERRED_SIZE ))
342355 .addComponent (materialPreviewWidget1 , javax .swing .GroupLayout .PREFERRED_SIZE , 225 , javax .swing .GroupLayout .PREFERRED_SIZE ))
@@ -382,8 +395,14 @@ private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FI
382395 }
383396 }//GEN-LAST:event_jComboBox1ActionPerformed
384397
398+ private void animationCheckBoxActionPerformed (java .awt .event .ActionEvent evt ) {
399+ boolean enabled = animationCheckBox .isSelected ();
400+ materialPreviewWidget1 .setAnimationEnabled (enabled );
401+ }
402+
385403 // Variables declaration - do not modify//GEN-BEGIN:variables
386404 private javax .swing .JTabbedPane additionalRenderStatePane ;
405+ private javax .swing .JCheckBox animationCheckBox ;
387406 private javax .swing .JPanel editorPanel ;
388407 private javax .swing .JCheckBox jCheckBox1 ;
389408 private javax .swing .JComboBox jComboBox1 ;
0 commit comments