Ship 0.8 fog/freistellen and fix Windows CI for friends
Some checks are pending
Windows Release / windows-x86_64 (push) Waiting to run
Some checks are pending
Windows Release / windows-x86_64 (push) Waiting to run
Publish the portable zip to public Forgejo from the private GitHub builder, and force Ninja so MSVC 195 deps build without CMake 4.2.
This commit is contained in:
parent
97b136de3b
commit
1c1d63f376
46 changed files with 1748 additions and 156 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include "CanvasComponentAllocator.hpp"
|
||||
#include "CanvasComponentContainer.hpp"
|
||||
#include "../DrawingProgram/DrawingProgram.hpp"
|
||||
#include "../DrawingProgram/Layers/DrawingProgramLayerListItem.hpp"
|
||||
#include "../World.hpp"
|
||||
#include <Helpers/NetworkingObjects/DelayUpdateSerializedClassManager.hpp>
|
||||
#include "CanvasComponent.hpp"
|
||||
|
|
@ -45,6 +46,13 @@ void CanvasComponentAllocator::register_class(World& world) {
|
|||
a(*o.comp);
|
||||
},
|
||||
.readUpdate = [](CanvasComponentAllocator& o, cereal::PortableBinaryInputArchive& a, const std::shared_ptr<NetServer::ClientData>& c) {
|
||||
// Host rejects client edits of fog/locked-layer components (still consume the payload).
|
||||
if(c && o.comp && o.comp->compContainer && o.comp->compContainer->parentLayer
|
||||
&& o.comp->compContainer->parentLayer->is_player_edit_blocked()) {
|
||||
auto junk = std::unique_ptr<CanvasComponent>(CanvasComponent::allocate_comp(o.comp->get_type()));
|
||||
a(*junk);
|
||||
return;
|
||||
}
|
||||
a(*o.comp);
|
||||
},
|
||||
.allocateCopy = [](const CanvasComponentAllocator& o) {
|
||||
|
|
@ -58,6 +66,8 @@ void CanvasComponentAllocator::register_class(World& world) {
|
|||
},
|
||||
.postUpdateFunc = [&drawP = world.drawProg](CanvasComponentAllocator& o) {
|
||||
o.comp->compContainer->commit_update(drawP);
|
||||
// Fog mesh reshape / content edit can change who is fully covered.
|
||||
drawP.layerMan.mark_fog_client_projection_dirty();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue