Skip to content

Commit f6477d3

Browse files
committed
Version changed
Minor issues fixed
1 parent 5f85500 commit f6477d3

8 files changed

Lines changed: 20 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
env:
1818
QT_VERSION: 5.15.2
1919
QTCREATOR_VERSION: 11.0.3
20-
VERSION: 2024.2
20+
VERSION: 2024.3
2121
THUNDER_RELEASE: ${{ startsWith(github.ref, 'refs/tags/2') }}
2222

2323
jobs:

modules/editor/shadertools/shaders/Default.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main(void) {
1010
#pragma instance
1111

1212
#ifdef VISIBILITY_BUFFER
13-
color = vec4(objectId);
13+
color = objectId;
1414
return;
1515
#endif
1616

modules/editor/shadertools/shaders/Shader.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void main(void) {
5454
vec3 emit = Emissive * _color.xyz;
5555

5656
#ifdef VISIBILITY_BUFFER
57-
gbuffer0 = vec4(objectId);
57+
gbuffer0 = objectId;
5858
return;
5959
#endif
6060

modules/vms/angel/src/angelsystem.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333
#define TEMPALTE "AngelBinary"
3434
#define URI "thor://Components/"
3535

36+
void replace(std::string &srcStr, const std::string &findStr,
37+
const std::string &replaceStr) {
38+
std::size_t replaceStrLen = replaceStr.length();
39+
for (std::size_t pos = 0; pos != std::string::npos; pos += replaceStrLen) {
40+
if ((pos = srcStr.find(findStr, pos)) != std::string::npos) {
41+
srcStr.replace(pos, findStr.length(), replaceStr);
42+
} else {
43+
break;
44+
}
45+
}
46+
}
47+
3648
class AngelStream : public asIBinaryStream {
3749
public:
3850
explicit AngelStream(ByteArray &ptr) :
@@ -403,6 +415,7 @@ void AngelSystem::bindMetaType(asIScriptEngine *engine, const MetaType::Table &t
403415
it = '@';
404416
}
405417
}
418+
replace(signature, "std::", "");
406419

407420
if(method.table()->type == MetaMethod::Static) {
408421
engine->SetDefaultNamespace(typeName);

version.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024.2
1+
2024.3

worldeditor/bin/engine/materials/DefaultFont.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void main() {
5858
}
5959

6060
#ifdef VISIBILITY_BUFFER
61-
color = vec4(objectId);
61+
color = objectId;
6262
return;
6363
#endif
6464

worldeditor/bin/engine/materials/DefaultMesh.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void main() {
3232
float model = 0.333f;
3333

3434
#ifdef VISIBILITY_BUFFER
35-
gbuffer0 = vec4(objectID);
35+
gbuffer0 = objectId;
3636
return;
3737
#endif
3838

worldeditor/bin/engine/materials/DefaultSprite.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void main() {
2929
}
3030

3131
#ifdef VISIBILITY_BUFFER
32-
color = vec4(objectId);
32+
color = objectId;
3333
return;
3434
#endif
3535

0 commit comments

Comments
 (0)