You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Added some obvious errors explanations
This commit is contained in:
@@ -779,7 +779,7 @@ bool CurvePreviewGenerator::handles(const String &p_type) const {
|
||||
Ref<Texture> CurvePreviewGenerator::generate(const Ref<Resource> &p_from, const Size2 &p_size) const {
|
||||
|
||||
Ref<Curve> curve_ref = p_from;
|
||||
ERR_FAIL_COND_V(curve_ref.is_null(), Ref<Texture>());
|
||||
ERR_FAIL_COND_V_MSG(curve_ref.is_null(), Ref<Texture>(), "It's not a reference to a valid Resource object.");
|
||||
Curve &curve = **curve_ref;
|
||||
|
||||
// FIXME: Should be ported to use p_size as done in b2633a97
|
||||
|
||||
Reference in New Issue
Block a user