MCPcopy Create free account
hub / github.com/Tencent/libpag / SetLayerEditable

Function SetLayerEditable

exporter/src/export/Marker.cpp:539–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void SetLayerEditable(bool isEditable, const AEGP_ItemH& itemHandle, pag::ID id) {
540 std::string keyString = GetKeyStringWithId("noReplace", id);
541 DeleteMarkerFromComposition(itemHandle, keyString);
542 if (isEditable) {
543 return;
544 }
545 nlohmann::json value = 1;
546 AddMarkerToComposition(itemHandle, keyString, value);
547}
548
549void SetCompositionStoragePath(const std::string& path, const AEGP_ItemH& itemHandle) {
550 std::string keyString = "storePath";

Callers 2

setIsEditableMethod · 0.85
setIsEditableMethod · 0.85

Calls 3

GetKeyStringWithIdFunction · 0.85
AddMarkerToCompositionFunction · 0.85

Tested by

no test coverage detected