Implorer / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

After ChaseCamera disable then re-enable, camera does not rotate #643

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The protected canRotate field is never turned back on currently in the Stable 
release. The following should fix it. I only added the else clause to the if 
statement.

    /**
     * Enable or disable the camera
     * @param enabled true to enable
     */
    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
        if (!enabled) {
            canRotate = false; // reset this flag in-case it was on before
        } else {
            canRotate = true; // reset this flag in-case it was off before
        }
    }

Original issue reported on code.google.com by melomb...@gmail.com on 16 Jul 2014 at 4:30