Revize 3c2987e2
Přidáno uživatelem Oto Šťáva před téměř 4 roky(ů)
deltarobot-vr/Assets/DeltaRobotVr/Client.cs | ||
---|---|---|
371 | 371 |
UInt32 numberOfBytes = reader.ReadUInt32(); |
372 | 372 |
UInt32 numberOfPoints = numberOfBytes / PointLength; |
373 | 373 |
Single3[] curve = new Single3[numberOfPoints]; |
374 |
var x, y, z; |
|
375 | 374 |
|
376 | 375 |
for(int i = 0; i < numberOfPoints; i++) |
377 | 376 |
{ |
378 |
x = reader.ReadSingle(); |
|
379 |
y = reader.ReadSingle(); |
|
380 |
z = reader.ReadSingle(); |
|
377 |
var x = reader.ReadSingle();
|
|
378 |
var y = reader.ReadSingle();
|
|
379 |
var z = reader.ReadSingle();
|
|
381 | 380 |
curve[i] = new Single3(x, y, z); |
382 | 381 |
} |
383 | 382 |
|
384 |
lock(_curveLock)
|
|
385 |
{
|
|
386 |
CurveCounter++;
|
|
387 |
Curve = curve;
|
|
383 |
lock(_curveLock) |
|
384 |
{ |
|
385 |
CurveCounter++; |
|
386 |
Curve = curve; |
|
388 | 387 |
} |
389 | 388 |
} |
390 | 389 |
|
Také k dispozici: Unified diff
Hotfix - Compilation error in client