kopia lustrzana https://github.com/jameshball/osci-render
Correctly check for end-of-lines in Blender connection
rodzic
a83cc33a76
commit
4a97c317f9
|
@ -38,9 +38,11 @@ void ObjectServer::run() {
|
|||
std::memcpy(message.get() + i, buffer, bytesRead);
|
||||
i += bytesRead;
|
||||
|
||||
if (message[i] == '\n') {
|
||||
message[i] = '\0';
|
||||
break;
|
||||
for (int j = i - bytesRead; j < i; j++) {
|
||||
if (message[j] == '\n') {
|
||||
message[j] = '\0';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
pluginCharacteristicsValue="pluginProducesMidiOut,pluginWantsMidiIn"
|
||||
pluginManufacturer="jameshball" aaxIdentifier="sh.ball.oscirender"
|
||||
cppLanguageStandard="20" projectLineFeed=" " headerPath="./include"
|
||||
version="2.0.7" companyName="James H Ball" companyWebsite="https://osci-render.com"
|
||||
version="2.0.8" companyName="James H Ball" companyWebsite="https://osci-render.com"
|
||||
companyEmail="james@ball.sh">
|
||||
<MAINGROUP id="j5Ge2T" name="osci-render">
|
||||
<GROUP id="{5ABCED88-0059-A7AF-9596-DBF91DDB0292}" name="Resources">
|
||||
|
|
Ładowanie…
Reference in New Issue