|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright (c) 2009-2012, 2015 jMonkeyEngine |
|
|
|
* Copyright (c) 2009-2012, 2015-2016 jMonkeyEngine |
|
|
|
* All rights reserved. |
|
|
|
* All rights reserved. |
|
|
|
* |
|
|
|
* |
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
@ -228,7 +228,9 @@ public abstract class Light implements Savable, Cloneable { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Light clone(){ |
|
|
|
public Light clone(){ |
|
|
|
try { |
|
|
|
try { |
|
|
|
return (Light) super.clone(); |
|
|
|
Light l = (Light) super.clone(); |
|
|
|
|
|
|
|
l.color = color.clone(); |
|
|
|
|
|
|
|
return l; |
|
|
|
} catch (CloneNotSupportedException ex) { |
|
|
|
} catch (CloneNotSupportedException ex) { |
|
|
|
throw new AssertionError(); |
|
|
|
throw new AssertionError(); |
|
|
|
} |
|
|
|
} |
|
|
|