Skip to content

Commit 0e27dc3

Browse files
committed
When a Sprite3D object is added to a Camera via Camera.add it is now added to the Display and Update Lists. Fix phaserjs#3945
1 parent ca0322a commit 0e27dc3

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ Support for Camera 3D and Sprite 3D Game Objects have been removed from the core
122122

123123
You can find the source for Camera 3D in the new `plugins/camera3d` folder, along with a README file explaining how to now use the plugin in your games.
124124

125+
* When a Sprite3D object is added to a Camera via `Camera.add` it is now added to the Display and Update Lists. Fix #3945 (thanks @vvega)
126+
125127
### New Features
126128

127129
* `Camera.resolution` is a new read-only property that holds the current game config resolution that the camera is using. This is used internally for viewport calculations.

plugins/camera3d/dist/camera3d.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6036,6 +6036,9 @@ var Camera = new Class({
60366036
{
60376037
this.children.set(sprite3D);
60386038

6039+
this.displayList.add(sprite3D.gameObject);
6040+
this.updateList.add(sprite3D.gameObject);
6041+
60396042
this.updateChildren();
60406043

60416044
return sprite3D;

plugins/camera3d/dist/camera3d.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/camera3d/src/Camera.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ var Camera = new Class({
300300
{
301301
this.children.set(sprite3D);
302302

303+
this.displayList.add(sprite3D.gameObject);
304+
this.updateList.add(sprite3D.gameObject);
305+
303306
this.updateChildren();
304307

305308
return sprite3D;

0 commit comments

Comments
 (0)