RenderQueue: Configurable order and amount of RenderBuckets
Forum rules
Discuss your feature requests for the next release of Ardor3D here. Please make a ticket and reference it in your first post.
Discuss your feature requests for the next release of Ardor3D here. Please make a ticket and reference it in your first post.
12 posts
• Page 2 of 2 • 1, 2
Re: RenderQueue: Configurable order and amount of RenderBuck
Thanks,
I think RenderBucketType equals method doesn't need to compare name, because there can be only one instance per name.
- mazander
I think RenderBucketType equals method doesn't need to compare name, because there can be only one instance per name.
- mazander
- Code: Select all
Index: RenderBucketType.java
===================================================================
--- RenderBucketType.java (revision 1756)
+++ RenderBucketType.java (working copy)
@@ -44,15 +44,10 @@
}
@Override
- public boolean equals(final Object obj) {
- if (!(obj instanceof RenderBucketType)) {
- return false;
- }
+ public boolean equals(final Object obj) {
+ return this == obj;
+ }
- final RenderBucketType other = (RenderBucketType) obj;
- return other.name.equals(name);
- }
-
@Override
public int hashCode() {
return name.hashCode();
- mazander
- regular
- Posts: 92
- Joined: Thu May 19, 2011 7:23 am
- Location: Finland
Re: RenderQueue: Configurable order and amount of RenderBuck
Fair enough! In trunk.
Gratitude is a mark of a noble soul and a refined character.
-

renanse - Site Admin
- Posts: 2958
- Joined: Tue Oct 28, 2008 6:49 pm
- Location: Austin, TX
12 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 2 guests