mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:44:21 +02:00
not sure why entities don't render with these changes
This commit is contained in:
parent
fc0e87d5ea
commit
72d8f90ec1
3 changed files with 3 additions and 2 deletions
|
@ -67,6 +67,7 @@ class EntityItemProperties {
|
|||
friend class ParticleEffectEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||
friend class ZoneEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||
friend class WebEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||
friend class ImageEntityItem;
|
||||
friend class LineEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||
friend class PolyVoxEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||
friend class PolyLineEntityItem; // TODO: consider removing this friend relationship and use public methods
|
||||
|
|
|
@ -91,7 +91,7 @@ EntityItemPointer EntityTypes::constructEntityItem(EntityType entityType, const
|
|||
EntityItemPointer newEntityItem = NULL;
|
||||
EntityTypeFactory factory = NULL;
|
||||
if (entityType >= 0 && entityType <= LAST) {
|
||||
qCDebug(entities) << "check 4 type: " << entityType;
|
||||
qCDebug(entities) << "check 4 type: " << entityType << ", name: " << properties.getName();
|
||||
factory = _factories[entityType];
|
||||
}
|
||||
if (factory) {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "ShapeEntityItem.h"
|
||||
#include "ImageEntityItem.h"
|
||||
|
||||
const QString ImageEntityItem::DEFAULT_IMAGE_URL = QString("");
|
||||
const QString ImageEntityItem::DEFAULT_IMAGE_URL("");
|
||||
|
||||
EntityItemPointer ImageEntityItem::factory(const EntityItemID& entityID, const EntityItemProperties& properties) {
|
||||
EntityItemPointer entity(new ImageEntityItem(entityID), [](EntityItem* ptr) { ptr->deleteLater(); });
|
||||
|
|
Loading…
Reference in a new issue