mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
Return a value in all codepaths.
This commit is contained in:
parent
4589a29066
commit
9529c7a5a5
@ -214,6 +214,8 @@ Variant MMNodeUniversalProperty::get_owner_value(const Vector2 &uv) {
|
||||
} else if (default_type == DEFAULT_TYPE_IMAGE) {
|
||||
return to_color(owner->get_property_value(uv));
|
||||
}
|
||||
|
||||
return Variant();
|
||||
}
|
||||
|
||||
Variant MMNodeUniversalProperty::get_value_or_zero(const Vector2 &uv, const bool skip_owner_val) {
|
||||
|
@ -15,7 +15,6 @@ class MMNodeUniversalProperty : public Resource {
|
||||
|
||||
public:
|
||||
enum SlotTypes {
|
||||
|
||||
SLOT_TYPE_NONE = -1,
|
||||
SLOT_TYPE_IMAGE = 0,
|
||||
SLOT_TYPE_INT = 1,
|
||||
@ -27,7 +26,6 @@ public:
|
||||
};
|
||||
|
||||
enum MMNodeUniversalPropertyDefaultType {
|
||||
|
||||
DEFAULT_TYPE_INT = 0,
|
||||
DEFAULT_TYPE_FLOAT = 1,
|
||||
DEFAULT_TYPE_VECTOR2 = 2,
|
||||
|
Loading…
Reference in New Issue
Block a user