Skip to content

Commit

Permalink
Support for assumption that creators of prim assets governed by creator.
Browse files Browse the repository at this point in the history
Assume if someone has put an asset on a prim they have license or are trusted to manage it by actual creator (who might be same creator).
  • Loading branch information
appurist authored and kf6kjg committed Mar 25, 2019
1 parent d6658eb commit 96c7f32
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public class ArchiveReadRequest
int m_scannedItems = 0;
int m_debugOars = 0;

// false if we assume prim creator is creator of assets on prims, or has license to use, or will filter.
bool m_filterPrimAssets = false; // false==include prim assets like textures

/// <summary>
/// Used to cache lookups for valid uuids.
/// </summary>
Expand Down Expand Up @@ -631,6 +634,8 @@ private Primitive.TextureEntryFace FilterFaceTexture(SceneObjectPart part, Primi

private bool FilterPrimTexturesByCreator(SceneObjectPart part, UUID ownerID)
{
if (!m_filterPrimAssets) return false;

bool filtered = false;

int basicSculptType = part.Shape.SculptType & (byte)0x3F;
Expand Down Expand Up @@ -688,6 +693,8 @@ private bool FilterPrimTexturesByCreator(SceneObjectPart part, UUID ownerID)

private bool FilterOtherPrimAssetsByCreator(SceneObjectPart part, UUID ownerID)
{
if (!m_filterPrimAssets) return false;

bool filtered = false;
if (part.Sound != UUID.Zero)
{
Expand Down

0 comments on commit 96c7f32

Please sign in to comment.