mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Added some obvious errors explanations
This commit is contained in:
parent
e9f49a6d5a
commit
17732fe698
125 changed files with 435 additions and 458 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue