mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Use reference to constant in functions
This commit is contained in:
parent
3bfffcc568
commit
01cc7a996b
42 changed files with 82 additions and 82 deletions
|
|
@ -783,7 +783,7 @@ bool CurvePreviewGenerator::handles(const String &p_type) const {
|
|||
return p_type == "Curve";
|
||||
}
|
||||
|
||||
Ref<Texture> CurvePreviewGenerator::generate(const Ref<Resource> &p_from, const Size2 p_size) 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>());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue