You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
This commit is contained in:
@@ -56,7 +56,6 @@ NoiseTexture::~NoiseTexture() {
|
||||
}
|
||||
|
||||
void NoiseTexture::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_width", "width"), &NoiseTexture::set_width);
|
||||
ClassDB::bind_method(D_METHOD("set_height", "height"), &NoiseTexture::set_height);
|
||||
|
||||
@@ -86,7 +85,6 @@ void NoiseTexture::_bind_methods() {
|
||||
}
|
||||
|
||||
void NoiseTexture::_validate_property(PropertyInfo &property) const {
|
||||
|
||||
if (property.name == "bump_strength") {
|
||||
if (!as_normalmap) {
|
||||
property.usage = PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL;
|
||||
@@ -104,7 +102,6 @@ void NoiseTexture::_set_texture_data(const Ref<Image> &p_image) {
|
||||
}
|
||||
|
||||
void NoiseTexture::_thread_done(const Ref<Image> &p_image) {
|
||||
|
||||
_set_texture_data(p_image);
|
||||
noise_thread.wait_to_finish();
|
||||
if (regen_queued) {
|
||||
@@ -119,7 +116,6 @@ void NoiseTexture::_thread_function(void *p_ud) {
|
||||
}
|
||||
|
||||
void NoiseTexture::_queue_update() {
|
||||
|
||||
if (update_queued)
|
||||
return;
|
||||
|
||||
@@ -128,7 +124,6 @@ void NoiseTexture::_queue_update() {
|
||||
}
|
||||
|
||||
Ref<Image> NoiseTexture::_generate_texture() {
|
||||
|
||||
// Prevent memdelete due to unref() on other thread.
|
||||
Ref<OpenSimplexNoise> ref_noise = noise;
|
||||
|
||||
@@ -161,7 +156,6 @@ void NoiseTexture::_update_texture() {
|
||||
use_thread = false;
|
||||
#endif
|
||||
if (use_thread) {
|
||||
|
||||
if (!noise_thread.is_started()) {
|
||||
noise_thread.start(_thread_function, this);
|
||||
regen_queued = false;
|
||||
@@ -231,7 +225,6 @@ bool NoiseTexture::is_normalmap() {
|
||||
}
|
||||
|
||||
void NoiseTexture::set_bump_strength(float p_bump_strength) {
|
||||
|
||||
if (p_bump_strength == bump_strength)
|
||||
return;
|
||||
bump_strength = p_bump_strength;
|
||||
@@ -240,17 +233,14 @@ void NoiseTexture::set_bump_strength(float p_bump_strength) {
|
||||
}
|
||||
|
||||
float NoiseTexture::get_bump_strength() {
|
||||
|
||||
return bump_strength;
|
||||
}
|
||||
|
||||
int NoiseTexture::get_width() const {
|
||||
|
||||
return size.x;
|
||||
}
|
||||
|
||||
int NoiseTexture::get_height() const {
|
||||
|
||||
return size.y;
|
||||
}
|
||||
|
||||
@@ -264,6 +254,5 @@ uint32_t NoiseTexture::get_flags() const {
|
||||
}
|
||||
|
||||
Ref<Image> NoiseTexture::get_data() const {
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user